Fix students not checked in query.