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 (period_start>='2014-10-20' OR period_start<='2014-11-30') AND (all_mark' at line 4' in /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/library/Zend/Db/Statement/Pdo.php:238 Stack trace: #0 /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array) #1 /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/library/Zend/Db/Adapter/Abstract.php(433): Zend_Db_Statement->execute(Array) #2 /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/library/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #3 /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/application/Hotel/Model/HotelStopSaleRoomGateway.php(92): Zend_Db_Ada in /var/zpanel/hostdata/bilgimax/public_html/hitturkey_com/library/Zend/Db/Statement/Pdo.php on line 238