SE PRODUJO UNA EXCEPCIÓN

Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (c.id_marca is null) AND (c.es_contenedor = true) AND (c.activa = 1) ORDE' at line 2
Pila de eventos:
#0 /var/www/www.soloporteros.com/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT `c`.`id`...')
#1 /var/www/www.soloporteros.com/library/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT `c`.`id`...')
#2 /var/www/www.soloporteros.com/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT `c`.`id`...')
#3 /var/www/www.soloporteros.com/library/Zend/Db/Table/Abstract.php(1575): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select))
#4 /var/www/www.soloporteros.com/library/Zend/Db/Table/Abstract.php(1390): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /var/www/www.soloporteros.com/library/Motor/views/helpers/FiltroProductos.php(473): Zend_Db_Table_Abstract->fetchAll(Object(Zend_Db_Table_Select))
#6 /var/www/www.soloporteros.com/library/Motor/views/helpers/FiltroProductos.php(227): Motor_View_Helper_FiltroProductos->filtrosCruzadosCategorias(Array, Array, Array, 0, 0, NULL, NULL, false, false, NULL, Array, false)
#7 /var/www/www.soloporteros.com/library/Motor/controllers/ProductosController.php(581): Motor_View_Helper_FiltroProductos->filtrosRefinar(Array, Array, '59', 0, 0, NULL, NULL, false, false)
#8 /var/www/www.soloporteros.com/library/Zend/Controller/Action.php(516): Motor_ProductosController->indexAction()
#9 /var/www/www.soloporteros.com/library/Motor/Dispatcher.php(175): Zend_Controller_Action->dispatch('indexAction')
#10 /var/www/www.soloporteros.com/library/Zend/Controller/Front.php(954): Motor_Dispatcher->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/www.soloporteros.com/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 /var/www/www.soloporteros.com/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/www.soloporteros.com/public_html/index.php(74): Zend_Application->run()
#14 {main}