There is an error on the SQL command.

SQL:
DELETE FROM fbz_imoveis WHERE ORIGEM = 0 and codigo in (0000000000142,0000000000417,0000000001001)

Error:
MySQL server has gone away