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 '' at line 1 in /var/www/html/picks/Doctrine/DBAL/Connection.php:716 Stack trace: #0 [internal function]: PDO->query('SELECT * FROM w...') #1 /var/www/html/picks/Doctrine/DBAL/Connection.php(716): call_user_func_array(Array, Array) #2 /var/www/html/picks/user.php(27): Doctrine\DBAL\Connection->query('SELECT * FROM w...') #3 {main} thrown in /var/www/html/picks/Doctrine/DBAL/Connection.php on line 716