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 'AND SEASON=2017' at line 1 in /var/www/6a1104c9-3ef2-4c61-b6e3-e86059dfa0f0/public_html/scripts/registration.php:246
Stack trace:
#0 /var/www/6a1104c9-3ef2-4c61-b6e3-e86059dfa0f0/public_html/scripts/registration.php(246): PDO->query('SELECT COUNT(*)...')
#1 /var/www/6a1104c9-3ef2-4c61-b6e3-e86059dfa0f0/public_html/results.php(534): IsRegisteredInSeason(Object(PDO), NULL, 2017)
#2 {main}
thrown in /var/www/6a1104c9-3ef2-4c61-b6e3-e86059dfa0f0/public_html/scripts/registration.php on line 246