Bug in course enrolment check

Wrong field being matched – there is no courses field in the courses table. We should be checking against courses.course_id, not courses.courses.