Debug info: Unknown column 'c.visible' in 'field list'
SELECT c.id, c.name, c.contextid, c.idnumber, c.visible, COUNT(DISTINCT cm.userid) AS memberscnt
FROM mdl_cohort c
LEFT JOIN mdl_cohort_members cm ON cm.cohortid = c.id
WHERE (c.contextid IN (?,?,?))
GROUP BY c.id, c.name, c.contextid, c.idnumber, c.visible
ORDER BY c.name, c.idnumber LIMIT 0, 1
[array (
0 => '9035',
1 => '9034',
2 => '1',
)]
Error code: dmlreadexception
Stack trace: - line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 291 of /cohort/lib.php: call to mysqli_native_moodle_database->get_records_sql()
- line 250 of /enrol/manual/lib.php: call to cohort_get_available_cohorts()
- line 1121 of /enrol/locallib.php: call to enrol_manual_plugin->get_manual_enrol_button()
- line 467 of /enrol/renderer.php: call to course_enrolment_manager->get_manual_enrol_buttons()
- line 45 of /enrol/renderer.php: call to course_enrolment_table->get_manual_enrol_buttons()
- line 242 of /enrol/users.php: call to core_enrol_renderer->render_course_enrolment_users_table()