an unexpected error occured.

Unexpected Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'OR category_id = ) ORDER BY `sequence` ASC' at line 1


#0 /home/kbt/public_html/mvc/libraries/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/kbt/public_html/mvc/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/kbt/public_html/mvc/libraries/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /home/kbt/public_html/mvc/libraries/Zend/Db/Table/Abstract.php(1529): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/kbt/public_html/mvc/libraries/Zend/Db/Table/Abstract.php(1344): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/kbt/public_html/mvc/application/modules/shop/models/DbTables/ShopCategories.php(40): Zend_Db_Table_Abstract->fetchAll(Object(Zend_Db_Table_Select))
#6 /home/kbt/public_html/mvc/application/modules/front/controllers/ProductenController.php(142): Model_DbTables_ShopCategories->getAllRecords(Array, Array, '', Array)
#7 /home/kbt/public_html/mvc/libraries/Zend/Controller/Action.php(516): ProductenController->viewAction()
#8 /home/kbt/public_html/mvc/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('viewAction')
#9 /home/kbt/public_html/mvc/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /home/kbt/public_html/index.php(144): Zend_Controller_Front->dispatch()
#11 {main}