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 ') a
LEFT JOIN
(select team_id, id, rookie, a' at line 5 in /home/rynacons/public_html/HockeySites/v10_functions.php:248
Stack trace:
#0 /home/rynacons/public_html/HockeySites/v10_functions.php(248): PDO->query('select a.id, a....')
#1 /home/rynacons/public_html/HockeySites/v10_players.php(32): createPlayerLeagueJSON('86', '500216', '1711', '', '2024', '209')
#2 /home/rynacons/public_html/HockeySites/v10_index.php(269): include('/home/rynacons/...')
#3 /home/rynacons/public_html/HockeySites/Assoc-NSMMHL/players/index.php(1): include('/home/rynacons/...')
#4 {main}
thrown in /home/rynacons/public_html/HockeySites/v10_functions.php on line 248