Fix load roomids query by teacher