Still no luck!! Saved the changes, reset Apache and cleared the local cache and I still get the same message!
Increased debug mode to developer and now I see the following message:
Ambiguous column name 'sortorder'.
SELECT c.id,c.sortorder,c.shortname,c.idnumber,c.category,c.fullname,c.teacher,c.teachers,c.student,c.students,c.guest,c.startdate,c.visible,c.newsitems,c.cost,c.enrol,c.groupmode,c.groupmodeforce,c.*, ctxid, ctxpath, ctxdepth, ctxlevel, categorypath FROM ( SELECT c.id, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, cc.path AS categorypath FROM mdl_course c JOIN mdl_course_categories cc ON c.category=cc.id JOIN mdl_context ctx ON (c.id=ctx.instanceid AND ctx.contextlevel=50) JOIN mdl_role_assignments ra ON (ra.contextid=ctx.id AND ra.userid=4) UNION SELECT c.id, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, cc.path AS categorypath FROM mdl_course c JOIN mdl_course_categories cc ON c.category=cc.id JOIN mdl_context ctx ON (c.id=ctx.instanceid AND ctx.contextlevel=50) JOIN mdl_role_capabilities rc ON (rc.contextid=ctx.id AND (rc.capability='moodle/course:view' )) UNION SELECT c.id, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, cc.path AS categorypath FROM mdl_course c JOIN mdl_course_categories cc ON c.category=cc.id JOIN mdl_context ctx ON (c.id=ctx.instanceid AND ctx.contextlevel=50) WHERE (ctx.path LIKE '/1/3/1104/1104/%') ) inline_view INNER JOIN mdl_course c ON inline_view.id = c.id ORDER BY visible DESC,sortorder ASC
line 686 of lib\dmllib.php: call to debugging()
line 1065 of lib\accesslib.php: call to get_recordset_sql()
line 936 of lib\datalib.php: call to get_user_courses_bycap()
line 68 of my\index.php: call to get_my_courses()
Incorrect $rs used!
line 822 of lib\dmllib.php: call to debugging()
line 1071 of lib\accesslib.php: call to rs_fetch_next_record()
line 936 of lib\datalib.php: call to get_user_courses_bycap()
line 68 of my\index.php: call to get_my_courses()
Incorrect $rs used!
line 866 of lib\dmllib.php: call to debugging()
line 1082 of lib\accesslib.php: call to rs_close()
line 936 of lib\datalib.php: call to get_user_courses_bycap()
line 68 of my\index.php: call to get_my_courses()
I have to use MS SQL at the moment as it's the DB of choice for our place (fits in with out IT model). Stopped using IIS last year though due to the amount of issues we had with Moodle so maybe next year we will look at switching to My SQL for Moodle?!
Cheers,
Ross