diff --git a/competency/classes/course_competency.php b/competency/classes/course_competency.php
index <HASH>..<HASH> 100644
--- a/competency/classes/course_competency.php
+++ b/competency/classes/course_competency.php
@@ -245,7 +245,7 @@ class course_competency extends persistent {
 
         $results = $DB->get_records_sql('SELECT course.id, course.visible, course.shortname, course.idnumber,
                                                 course.fullname, course.summary, course.summaryformat, course.startdate,
-                                                course.enddate
+                                                course.enddate, course.category
                                            FROM {course} course
                                            JOIN {' . self::TABLE . '} coursecomp
                                              ON coursecomp.courseid = course.id
MDL-<I> core_competency: Include course category

These courses are passed through to the course_summary_exporter which
requires a category id in each course record.