Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near "=": syntax error in /news_one.php:32 Stack trace: #0 /news_one.php(32): PDO->query('SELECT * FROM i...') #1 /news_one.php(75): getImageName(NULL) #2 {main} thrown in /news_one.php on line 32