I fixed this after some looking around. The key was this line:
HAVING Modules > 2
It basically made it so that it displayed courses that had more than 2 modules, and I happened to have only 2 courses with more than 2 modules. Removing that line made it display the hits of all courses and their teachers.