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 ')) AS CONSULTA1
WHERE MARCADO=0' at line 16 in C:\web\www\2021\get_trasalm.php:119
Stack trace:
#0 C:\web\www\2021\get_trasalm.php(119): mysqli_query(Object(mysqli), 'SELECT MARCADO...')
#1 {main}
thrown in C:\web\www\2021\get_trasalm.php on line 119