Solved error in allteacherstimetables. Added teacher id as where when counting study module total hours