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