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 'id_session = 'Dada de baja el 02-09-2014 a las 06:38:05' WHERE id_reg is null AN' at line 1