From c5dc85a841be19d2de953f525a7fb3984db7fa79 Mon Sep 17 00:00:00 2001
From: PavelBegunkov <asml.Silence@gmail.com>
Date: Sun, 31 Aug 2014 17:19:53 +0400
Subject: [PATCH] fix

---
 db/StoredProcedures.sql | 1 +
 1 file changed, 1 insertion(+)

diff --git a/db/StoredProcedures.sql b/db/StoredProcedures.sql
index 478b47f0a..9617b1388 100644
--- a/db/StoredProcedures.sql
+++ b/db/StoredProcedures.sql
@@ -538,6 +538,7 @@ BEGIN
 				faculties.Abbr 			AS 'FacultyAbbr'		
 		FROM `students`
 		INNER JOIN `study_groups` 		ON students.StudyGroupID = study_groups.ID
+		INNER JOIN `grades`				ON grades.ID = study_groups.GradeID
 		INNER JOIN `specializations` 	ON study_groups.SpecializationID = specializations.ID
 		INNER JOIN `faculties` 			ON specializations.FacultyID = faculties.ID
 		WHERE students.AccountID = UserID;
-- 
GitLab