Application Error

The following error occurred:

exception 'Zend_Db_Statement_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 MySQL server version for the right syntax to use near ') LIMIT 1' at line 7' in /library/Zend/Db/Statement/Pdo.php:227 Stack trace: #0 /library/Zend/Db/Statement.php(298): Zend_Db_Statement_Pdo->_execute(Array) #1 /library/Zend/Db/Adapter/Abstract.php(279): Zend_Db_Statement->execute(Array) #2 /library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #3 /library/Zend/Db/Table/Abstract.php(1103): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select)) #4 /library/Zend/Db/Table/Abstract.php(1010): Zend_Db_Table_Abstract->_fetch('id = ', NULL, 1) #5 /application/operators/CategoryOperator.php(280): Zend_Db_Table_Abstract->fetchRow('id = ') #6 /application/controllers/ProductController.php(941): CategoryOperator->getCategoryAncestors(NULL) #7 /library/Zend/Controller/Action.php(497): ProductController->showAction() #8 /library/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('showAction') #9 /library/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #10 /index.php(52): Zend_Controller_Front->dispatch() #11 {main}