MDL-42795 course: fixed param course in sql

course_sections has course field and not courseid, hence replaced it with course.