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 'GROUP BY a.id' at line 1 in /home/elsosege/public_html/Iskolai/classes/Verseny.php:122
Stack trace:
#0 /home/elsosege/public_html/Iskolai/classes/Verseny.php(122): PDO->query('SELECT a.* FROM...')
#1 /home/elsosege/public_html/Iskolai/classes/Verseny.php(93): Verseny->load('2')
#2 /home/elsosege/public_html/Iskolai/index.php(20): Verseny::getById('2')
#3 {main}
thrown in /home/elsosege/public_html/Iskolai/classes/Verseny.php on line 122