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