Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and ccc.descuento != 0' at line 8 in /var/www/websites/syscom.mx/app/webroot/syscomv5/class/cursos.php:161 Stack trace: #0 /var/www/websites/syscom.mx/app/webroot/syscomv5/class/cursos.php(161): mysqli->query() #1 /var/www/websites/syscom.mx/app/webroot/syscomv5/class/cursos.php(697): cursos->calcular_precio() #2 /var/www/websites/syscom.mx/app/webroot/syscomv5/calendario/info.php(37): cursos->programa() #3 /var/www/websites/syscom.mx/app/webroot/syscomv5/calendario/index.php(37): include('...') #4 {main} thrown in /var/www/websites/syscom.mx/app/webroot/syscomv5/class/cursos.php on line 161