Changed the query for advisor/attendance, as it was throwing an ObjectDoesNotExist error.