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 'cod_assinante WHERE cod_assinante = '89200063' AND seq_endereco = '1' AND s' at line 1