Fatal error: Uncaught 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 trial_car.amount>0 where shop.status=1 order by shop.shop_id' at line 1 in /home/netzh/netz-hiroshima.co.jp/reserve/Lib/nt_class_shop.php:192 Stack trace: #0 /home/netzh/netz-hiroshima.co.jp/reserve/Lib/nt_class_shop.php(192): PDO->query('select shop.* f...') #1 /home/netzh/netz-hiroshima.co.jp/reserve/cgi-bin/renew/nt_showRoom.php(13): shop::findAllCar(Object(PDO), NULL) #2 /home/netzh/netz-hiroshima.co.jp/public_html/reserve/index.php(24): require_once('/home/netzh/net...') #3 {main} thrown in /home/netzh/netz-hiroshima.co.jp/reserve/Lib/nt_class_shop.php on line 192