Fixed query to return possible attendees for an exam