Fatal error: Uncaught PDOException: 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 ') ORDER BY `dateadded` desc LIMIT 50' at line 2 in /var/www/html/library/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /var/www/html/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /var/www/html/library/Zend/Db/Statement.php(323): Zend_Db_Statement_Pdo->_execute(Array)
#2 /var/www/html/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/html/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `c`.*, `...', Array)
#4 /var/www/html/library/Zend/Db/Select.php(686): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#5 /var/www/html/application/models/ChatMapper.php(68): Zend_Db_Select->query()
#6 /var/www/html/application/views/helpers/Chat.php(7): Application_Model_ChatMapper->fetchAll(NULL)
in /var/www/html/library/Zend/Controller/Plugin/Broker.php on line 336