Fatal error: Uncaught MySQLException: SQL: SELECT upload_image.*,upload_file.file_name
FROM upload_image
LEFT JOIN upload_file ON upload_image.image_id=upload_file.file_id
where upload_image.list_id= AND upload_image.menuid= ORDER BY upload_image.id Asc
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 upload_image.menuid= ORDER BY upload_image.id Asc' at line 4 in /home/wwwroot/yichonews/wwwroot/inc/pdo.class.php:111
Stack trace:
#0 /home/wwwroot/yichonews/wwwroot/inc/pdo.class.php(129): DB->watchException()
#1 /home/wwwroot/yichonews/wwwroot/jp/productsdetail.php(135): DB->fetchAll()
#2 {main}
thrown in /home/wwwroot/yichonews/wwwroot/inc/pdo.class.php on line 111