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