DB Error: ERROR: invalid input syntax for integer: "consulta" LINE 1: SELECT * FROM galerias_mecip WHERE id = 'consulta' AND estad... ^