Minor fix in student model and studentview query