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 cancel' at line 1 in /home/danielm/public_html/include/lib_master.inc:51
Stack trace:
#0 /home/danielm/public_html/include/lib_master.inc(51): mysqli->query('select count(id...')
#1 /home/danielm/public_html/campos.php(16): countPro(Object(mysqli), 6)
#2 {main}
thrown in /home/danielm/public_html/include/lib_master.inc on line 51