Fatal error: Uncaught mysqli_sql_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 'AND c.IDCERTIFICATS = cp.IDCERTIFICATS AND c.CODE_PERIODICITE_SCENARISATION =...' at line 1 in /var/www/html/CCMP/ESSEC/inc/st_acces_fct_simtrade_mysql.php:180 Stack trace: #0 /var/www/html/CCMP/ESSEC/inc/st_acces_fct_simtrade_mysql.php(180): mysqli_query() #1 /var/www/html/CCMP/ESSEC/site/exercices/exercices_presentation_certificat.php(337): simtrade_select() #2 {main} thrown in /var/www/html/CCMP/ESSEC/inc/st_acces_fct_simtrade_mysql.php on line 180