Debug info: Table 'moodle.mdl_user_enrolments' doesn't exist
SELECT DISTINCT e.courseid, ue.userid
FROM mdl_user_enrolments ue
JOIN mdl_enrol e ON e.id = ue.enrolid
WHERE ue.status = ?
AND e.status = ?
AND ue.timestart < ? AND (ue.timeend = 0 OR ue.timeend > ?)AND ((e.courseid = ? AND ue.userid IN (?,?,?,?,?,?,?,?,?,?)) OR (e.courseid = ? AND ue.userid IN (?,?,?,?)) OR (e.courseid = ? AND ue.userid IN (?,?)) OR (e.courseid = ? AND ue.userid IN (?,?,?)) OR (e.courseid = ? AND ue.userid = ?))
[array (
0 => 0,
1 => 0,
2 => 1711639100,
3 => 1711639100,
4 => 42,
5 => '197',
6 => '2208',
7 => '2297',
8 => '2030',
9 => '34',
10 => '2203',
11 => '65',
12 => '2',
13 => '756',
14 => '33',
15 => 45,
16 => '35',
17 => '34',
18 => '65',
19 => '33',
20 => 48,
21 => '35',
22 => '756',
23 => 46,
24 => '35',
25 => '34',
26 => '33',
27 => 47,
28 => '2',
)]
Error code: dmlreadexception
SELECT DISTINCT e.courseid, ue.userid
FROM mdl_user_enrolments ue
JOIN mdl_enrol e ON e.id = ue.enrolid
WHERE ue.status = ?
AND e.status = ?
AND ue.timestart < ? AND (ue.timeend = 0 OR ue.timeend > ?)AND ((e.courseid = ? AND ue.userid IN (?,?,?,?,?,?,?,?,?,?)) OR (e.courseid = ? AND ue.userid IN (?,?,?,?)) OR (e.courseid = ? AND ue.userid IN (?,?)) OR (e.courseid = ? AND ue.userid IN (?,?,?)) OR (e.courseid = ? AND ue.userid = ?))
[array (
0 => 0,
1 => 0,
2 => 1711639100,
3 => 1711639100,
4 => 42,
5 => '197',
6 => '2208',
7 => '2297',
8 => '2030',
9 => '34',
10 => '2203',
11 => '65',
12 => '2',
13 => '756',
14 => '33',
15 => 45,
16 => '35',
17 => '34',
18 => '65',
19 => '33',
20 => 48,
21 => '35',
22 => '756',
23 => 46,
24 => '35',
25 => '34',
26 => '33',
27 => 47,
28 => '2',
)]
Error code: dmlreadexception
Stack trace:
- line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1184 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 907 of /lib/coursecatlib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 840 of /lib/coursecatlib.php: call to coursecat::ensure_users_enrolled()
- line 1541 of /lib/coursecatlib.php: call to coursecat::preload_course_contacts()
- line 2055 of /course/renderer.php: call to coursecat->get_courses()
- line 260 of /index.php: call to core_course_renderer->frontpage_available_courses()