Optimized queries in courses.show_course_students.
It's slightly better +/- 10 queries, but still quite a lot of queries.