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 'AS c ON r.id_compte=c.id_compte WHERE r.id_cours='' AND r.id_repetition=''...' at line 1