DB Error: ERROR: invalid input syntax for integer: "" LINE 1: SELECT * FROM galerias WHERE id = '' AND estado = 1 ^