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