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 'id_session = 'Dada de baja el 30-08-2016 a las 11:00:11' WHERE id_reg is null AN' at line 1