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 dp.price_guest_number <= r.room_guest_number
GROUP BY r.room_id' at line 9' in /is/htdocs/wp1091263_RY359MBP5T/www/library/Zend/Db/Statement/Pdo.php:238
Stack trace:
#0 /is/htdocs/wp1091263_RY359MBP5T/www/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /is/htdocs/wp1091263_RY359MBP5T/www/library/Zend/Db/Adapter/Abstract.php(405): Zend_Db_Statement->execute(Array)
#2 /is/htdocs/wp1091263_RY359MBP5T/www/library/Zend/Db/Adapter/Pdo/Abstract.php(205): Zend_Db_Adapter_Abstract->query('????SELECT?????...', Array)
#3 /is/htdocs/wp1091263_RY359MBP5T/www/application/models/Room.php(426): Zend_Db_Adapter_Pdo_Abstract->query('????SELECT?????...')
#4 /is/htdocs/wp1091263_RY359MBP5T/www/application/controllers/FavoriteController.php(76 in /is/htdocs/wp1091263_RY359MBP5T/www/library/Zend/Db/Statement/Pdo.php on line 238