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 'AND message_online=1) ORDER BY `date` DESC' at line 1' in /home/craeu/deploy/library/Zend/Db/Statement/Pdo.php:238 Stack trace: #0 /home/craeu/deploy/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array) #1 /home/craeu/deploy/library/Zend/Db/Adapter/Abstract.php(406): Zend_Db_Statement->execute(Array) #2 /home/craeu/deploy/library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query(Object(Varien_Db_Select), Array) #3 /home/craeu/deploy/library/Zend/Db/Adapter/Abstract.php(617): Zend_Db_Adapter_Pdo_Abstract->query(Object(Varien_Db_Select), Array) #4 /home/craeu/deploy/application/Editorialite/Model/Comment/Collection.php(12): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select)) #5 /home/craeu/deploy/application/Editorialite/controllers/ArticleController.php(62): Editorialite_Model_Comment_Collection->getComments(NULL, NULL) #6 /home/craeu/deploy/library/Zend/Controller/Action.php(502): Editorialite_ArticleController->indexAction() #7 /home/craeu/deploy/library/Zend/Controller/Dispatcher/Standard.php(293): Zend_Controller_Action->dispatch('indexAction') #8 /home/craeu/deploy/library/Zend/Controller/Front.php(915): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #9 /home/craeu/deploy/application/Gr.php(232): Zend_Controller_Front->dispatch() #10 /home/craeu/deploy/html/index.php(4): Gr::run() #11 {main}