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 location_type = '' ' at line 6' in /home/booktravel/public_html/v2/classes/establishment.class.php:49 Stack trace: #0 /home/booktravel/public_html/v2/classes/establishment.class.php(49): PDOStatement->execute() #1 /home/booktravel/public_html/v2/controllers/establishment_list.php(59): Establishment->get_establishments_by_location(Array, 'bed and breakfa...') #2 /home/booktravel/public_html/v2/index.php(24): require_once('/home/booktrave...') #3 /home/booktravel/public_html/index.php(56): include('/home/booktrave...') #4 {main} thrown in /home/booktravel/public_html/v2/classes/establishment.class.php on line 49