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 C:\wamp64\www\ribbonsandmore.com\pdf\create_pdf.php:2 Stack trace: #0 C:\wamp64\www\ribbonsandmore.com\pdf\create_pdf.php(2): PDO->query('select * from t...') #1 C:\wamp64\www\ribbonsandmore.com\pdf\pdf.php(23): include_once('C:\\wamp64\\www\\r...') #2 {main} thrown in C:\wamp64\www\ribbonsandmore.com\pdf\create_pdf.php on line 2