You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug info: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 6: ORDER BY cm.added ASC
^
SELECT DISTINCT(cm.id)
FROM mdl_course_modules cm
RIGHT JOIN mdl_competency_modulecomp cmcomp
ON cm.id = cmcomp.cmid
WHERE cm.visible = 1 AND cm.course = $1
ORDER BY cm.added ASC
[array (
0 => '7',
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 920 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 625 of /admin/tool/cmcompetency/classes/api.php: call to pgsql_native_moodle_database->get_records_sql()
line 35 of /admin/tool/cmcompetency/userreport.php: call to tool_cmcompetency\api::get_list_course_modules_with_competencies()
The text was updated successfully, but these errors were encountered:
This is the output I get:
Debug info: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
LINE 6: ORDER BY cm.added ASC
^
SELECT DISTINCT(cm.id)
FROM mdl_course_modules cm
RIGHT JOIN mdl_competency_modulecomp cmcomp
ON cm.id = cmcomp.cmid
WHERE cm.visible = 1 AND cm.course = $1
ORDER BY cm.added ASC
[array (
0 => '7',
)]
Error code: dmlreadexception
Stack trace:
The text was updated successfully, but these errors were encountered: