(ERROR: invalid input syntax for integer: "" LINE 1: SELECT id FROM fotos WHERE partido_id = '' ORDER BY id desc ^)