Fatal error: Uncaught exception 'PDOException' 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 DATE_FORMAT(date, '%Y-%m-%d') <= '2024-05-04')' at line 1' in /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #2 /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #3 /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #4 /home/lucido-style/www/libs/common/pager_culc.php(18): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select in /home/lucido-style/www/libs/ZendFramework/library/Zend/Db/Statement/Pdo.php on line 234