Solved error in enrollment query section. Sutydmodule external code is now i study module academic period table