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 MariaDB server version for the right syntax to use near '' at line 1 in /home/dantelac/public_html/app/classes/main.php:135 Stack trace: #0 /home/dantelac/public_html/app/classes/main.php(135): PDO->query('SELECT * FROM i...', 2) #1 /home/dantelac/public_html/app/controller/product.php(21): Main->imageList(NULL, 'urun') #2 /home/dantelac/public_html/index.php(62): require('/home/dantelac/...') #3 {main} thrown in /home/dantelac/public_html/app/classes/main.php on line 135