Fixed incorrect query in profGradebook