query id directly instead of matching an array of ids