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 28 in C:\xampp\htdocs\19LCLAY08\results\code\individual_single_event.php:163 Stack trace: #0 C:\xampp\htdocs\19LCLAY08\results\code\individual_single_event.php(163): PDO->prepare('\r\n ...') #1 C:\xampp\htdocs\19LCLAY08\results\report.php(177): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\19LCLAY08\results\code\individual_single_event.php on line 163