Fixed query on multiple ids