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('felhivas.26.181') #2 /home/elsosege/public_html/Iskolai/index.php(20): Verseny::getById('felhivas.26.181') #3 {main} thrown in /home/elsosege/public_html/Iskolai/classes/Verseny.php on line 106