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 '' at line 1 in /home/ramsua/public_html/include/submenu.php:26
Stack trace:
#0 /home/ramsua/public_html/include/submenu.php(26): mysqli_query(Object(mysqli), 'select id_subca...')
#1 /home/ramsua/public_html/proyectos_3.php(23): include('/home/ramsua/pu...')
#2 {main}
thrown in /home/ramsua/public_html/include/submenu.php on line 26