Error
pg_query(): Query failed: ERROR: invalid input syntax for integer: "" LINE 8: WHERE n_tipo = 'PUBLI' and k_entidad = '' ^