Change $id to the unambiguous $course_id