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 ') GROUP BY h.id ORDER BY FIELD(h.id,)' at line 11 in /var/www/html/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /var/www/html/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /var/www/html/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #2 /var/www/html/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #3 /var/www/html/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT MIN(rp.w...', Array) #4 /var/www/html/Zend/Db/Adapter/Abstract.php(737): Zend_Db_Adapter_Pdo_Abstract->query('SELECT MIN(rp.w...', Array) #5 /var/www/html/models/model.general.class.php(1060): Zend_Db_Adapter_Abstract->fetchAll('SELECT MIN(rp.w...') #6 /var/www/html/models/model.general.class.php(851): Model_General->resultForList('', 'string') in /var/www/html/Zend/Db/Statement/Pdo.php on line 235