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 'AND (quote_id = 6 OR quote_id = 17)) AS price, NULL as type, NULL as destination' at line 1 in /home/hermes280/iviaggidellairone.com/htdocs/front/app/mvc/models/general.model.php:466 Stack trace: #0 /home/hermes280/iviaggidellairone.com/htdocs/front/app/mvc/models/general.model.php(466): PDO->prepare('SELECT (SELECT...') #1 /home/hermes280/iviaggidellairone.com/htdocs/front/app/mvc/models/offers.model.php(263): generalModel->getAccomodationsList('offer_id', NULL) #2 /home/hermes280/iviaggidellairone.com/htdocs/front/app/mvc/controllers/offers.controller.php(13): offersModel->arrangeOffer() #3 /home/hermes280/iviaggidellairone.com/htdocs/front/init/mvc.php(28): offersController->collectData() #4 /home/hermes280/iviaggidellairone.com/htdocs/front/index.php(30): require_once('/home/hermes280...') #5 {main}