You have "mdl_course_categories" referenced in your code. Even if this part of the FROM clause is commented out, Configurable Reports still requires that you replace "mdl" with "prefix".
Analytics and reporting
Profile fields to export student enrolment date
This discussion has been locked so you can no longer reply to it.