exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-20' at line 1' in /home/cmdcomar/public_html/LibProy/Doctrine/Connection.php:1074 Stack trace: #0 /home/cmdcomar/public_html/LibProy/Doctrine/Connection.php(1022): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Mysql)) #1 /home/cmdcomar/public_html/LibProy/Doctrine/Query.php(1124): Doctrine_Connection->execute('SELECT DISTINCT...', Array) #2 /home/cmdcomar/public_html/LibProy/Doctrine/Query/Abstract.php(915): Doctrine_Query->getSqlQuery(Array) #3 /home/cmdcomar/public_html/LibProy/Doctrine/Query/Abstract.php(976): Doctrine_Query_Abstract->_execute(Array) #4 /home/cmdcomar/public_html/LibProy/Paginador.php(44): Doctrine_Query_Abstract->execute(Array, 3) #5 /home/cmdcomar/public_html/controller/Catalogo.php(39): Paginador->__construct(Object(Doctrine_Query), Array) #6 /home/cmdcomar/public_html/controller/Catalogo.php(10): Catalogo_Controller->Listado(Array) #7 /home/cmdcomar/public_html/LibProy/Controller.php(85): Catalogo_Controller->index(Array) #8 /home/cmdcomar/public_html/LibProy/ControllerRuteo.php(120): Controller->Render(Array) #9 /home/cmdcomar/public_html/carrito/index.php(49): ControllerRuteo->Render(Array) #10 {main}