Did you remember to make the first column something unique in your call to get_records? Duplicate value '903' found in column 'contextid'.
- line 1282 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
- line 1500 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1451 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
- line 1439 of /theme/mb2nl/lib/lib_course.php: call to moodle_database->get_records()
- line 1193 of /theme/mb2nl/lib/lib_course.php: call to theme_mb2nl_get_instructor_students_count()
- line 1286 of /theme/mb2nl/lib/lib_course.php: call to theme_mb2nl_get_course_teachers()
- line 919 of /theme/mb2nl/lib/lib_courses.php: call to theme_mb2nl_course_list_teachers()
- line 838 of /theme/mb2nl/lib/lib_courses.php: call to theme_mb2nl_course_list_courses()
- line 1272 of /theme/mb2nl/lib/lib_courses.php: call to theme_mb2nl_course_list()
- line 53 of /theme/mb2nl/renderers/core_course.php: call to theme_mb2nl_course_list_layout()
- line 1780 of /course/renderer.php: call to theme_mb2nl_core_course_renderer->coursecat_tree()
- line 66 of /course/index.php: call to core_course_renderer->course_category()