Fixed another bug on query for classes taken by student x