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