Fatal error: Uncaught 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 (pubblicazione <= '2012-05-18') AND (scadenza > '2012-05-18' or scadenza =' at line 1' in /usr/share/pear/Zend/Db/Statement/Pdo.php:234 Stack trace: #0 /usr/share/pear/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #1 /usr/share/pear/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #2 /usr/share/pear/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #3 /usr/share/pear/Zend/Db/Select.php(674): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select)) #4 /mount/sdh/html/ensmilano/application/models/Article.php(52): Zend_Db_Select->query() #5 /mount/sdh/html/ensmilano/application/controllers/ArticleController.php(93): Article->relatedArticles(156) #6 /usr/share/pea in /usr/share/pear/Zend/Db/Statement/Pdo.php on line 234