Fatal error: Uncaught exception 'Exception' with message 'DB. Error in query. 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 '' at line 1( select a.user, a.id, a.url, a.hotel, b.file_name, b.title, b.year, b.month from message a, message_photo b where a.id=b.message and b.visible=1 and b.id= )' in /home/ftpaccess/otzuv.ru/www/class/ConnectionClass.php:36 Stack trace: #0 /home/ftpaccess/otzuv.ru/www/load-user-hotel-photo.php(31): ConnectionClass->get('select a.user, ...') #1 {main} thrown in /home/ftpaccess/otzuv.ru/www/class/ConnectionClass.php on line 36