Fatal error: Uncaught Exception: 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 'ORDER BY idjeu' at line 1 query: SELECT jeu.titre,titreurl, phrase, joueurmin,joueurmax, duree, age,competence, commentaire.idjeu FROM jeu INNER JOIN commentaire ON jeu.idjeu = commentaire.idjeu WHERE activation='0' GROUP BY idjeu order by AVG(note) DESC ORDER BY idjeu in /htdocs/vendor/joshcam/mysqli-database-class/MysqliDb.php:1996
Stack trace:
#0 /htdocs/vendor/joshcam/mysqli-database-class/MysqliDb.php(559): MysqliDb->_prepareQuery()
#1 /htdocs/recherche/pagination.php(30): MysqliDb->rawQuery('SELECT jeu.titr...')
#2 /htdocs/recherche/mieuxnotes.php(7): pagination('SELECT jeu.titr...', '', '', '', '', '')
#3 {main}
thrown in /htdocs/vendor/joshcam/mysqli-database-class/MysqliDb.php on line 1996