SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu1_u.id FROM {user} eu1_u JOIN {user_enrolments} ej1_ue ON ej1_ue.userid = eu1_u.id JOIN {enrol} ej1_e ON (ej1_e.id = ej1_ue.enrolid AND ej1_e.courseid = :ej1_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu1_u.id LEFT JOIN {groups_members} gm1_gm2 ON (gm1_gm2.userid = eu1_u.id AND gm1_gm2.groupid = :gm1_6) WHERE 1 = 1 AND ej1_ue.status = :ej1_active AND ej1_e.status = :ej1_enabled AND ej1_ue.timestart < :ej1_now1 AND (ej1_ue.timeend = 0 OR ej1_ue.timeend > :ej1_now2) AND eu1_u.deleted = 0 AND eu1_u.id <> :eu1_guestid AND gm1_gm2.userid IS NOT NULL AND eu1_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu2_u.id FROM {user} eu2_u JOIN {user_enrolments} ej2_ue ON ej2_ue.userid = eu2_u.id JOIN {enrol} ej2_e ON (ej2_e.id = ej2_ue.enrolid AND ej2_e.courseid = :ej2_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu2_u.id LEFT JOIN {groups_members} gm2_gm2 ON (gm2_gm2.userid = eu2_u.id AND gm2_gm2.groupid = :gm2_12) WHERE 1 = 1 AND ej2_ue.status = :ej2_active AND ej2_e.status = :ej2_enabled AND ej2_ue.timestart < :ej2_now1 AND (ej2_ue.timeend = 0 OR ej2_ue.timeend > :ej2_now2) AND eu2_u.deleted = 0 AND eu2_u.id <> :eu2_guestid AND gm2_gm2.userid IS NOT NULL AND eu2_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu3_u.id FROM {user} eu3_u JOIN {user_enrolments} ej3_ue ON ej3_ue.userid = eu3_u.id JOIN {enrol} ej3_e ON (ej3_e.id = ej3_ue.enrolid AND ej3_e.courseid = :ej3_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu3_u.id LEFT JOIN {groups_members} gm3_gm2 ON (gm3_gm2.userid = eu3_u.id AND gm3_gm2.groupid = :gm3_18) WHERE 1 = 1 AND ej3_ue.status = :ej3_active AND ej3_e.status = :ej3_enabled AND ej3_ue.timestart < :ej3_now1 AND (ej3_ue.timeend = 0 OR ej3_ue.timeend > :ej3_now2) AND eu3_u.deleted = 0 AND eu3_u.id <> :eu3_guestid AND gm3_gm2.userid IS NOT NULL AND eu3_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu4_u.id FROM {user} eu4_u JOIN {user_enrolments} ej4_ue ON ej4_ue.userid = eu4_u.id JOIN {enrol} ej4_e ON (ej4_e.id = ej4_ue.enrolid AND ej4_e.courseid = :ej4_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu4_u.id LEFT JOIN {groups_members} gm4_gm2 ON (gm4_gm2.userid = eu4_u.id AND gm4_gm2.groupid = :gm4_24) WHERE 1 = 1 AND ej4_ue.status = :ej4_active AND ej4_e.status = :ej4_enabled AND ej4_ue.timestart < :ej4_now1 AND (ej4_ue.timeend = 0 OR ej4_ue.timeend > :ej4_now2) AND eu4_u.deleted = 0 AND eu4_u.id <> :eu4_guestid AND gm4_gm2.userid IS NOT NULL AND eu4_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu5_u.id FROM {user} eu5_u JOIN {user_enrolments} ej5_ue ON ej5_ue.userid = eu5_u.id JOIN {enrol} ej5_e ON (ej5_e.id = ej5_ue.enrolid AND ej5_e.courseid = :ej5_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu5_u.id LEFT JOIN {groups_members} gm5_gm2 ON (gm5_gm2.userid = eu5_u.id AND gm5_gm2.groupid = :gm5_30) WHERE 1 = 1 AND ej5_ue.status = :ej5_active AND ej5_e.status = :ej5_enabled AND ej5_ue.timestart < :ej5_now1 AND (ej5_ue.timeend = 0 OR ej5_ue.timeend > :ej5_now2) AND eu5_u.deleted = 0 AND eu5_u.id <> :eu5_guestid AND gm5_gm2.userid IS NOT NULL AND eu5_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu6_u.id FROM {user} eu6_u JOIN {user_enrolments} ej6_ue ON ej6_ue.userid = eu6_u.id JOIN {enrol} ej6_e ON (ej6_e.id = ej6_ue.enrolid AND ej6_e.courseid = :ej6_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu6_u.id LEFT JOIN {groups_members} gm6_gm2 ON (gm6_gm2.userid = eu6_u.id AND gm6_gm2.groupid = :gm6_36) WHERE 1 = 1 AND ej6_ue.status = :ej6_active AND ej6_e.status = :ej6_enabled AND ej6_ue.timestart < :ej6_now1 AND (ej6_ue.timeend = 0 OR ej6_ue.timeend > :ej6_now2) AND eu6_u.deleted = 0 AND eu6_u.id <> :eu6_guestid AND gm6_gm2.userid IS NOT NULL AND eu6_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu7_u.id FROM {user} eu7_u JOIN {user_enrolments} ej7_ue ON ej7_ue.userid = eu7_u.id JOIN {enrol} ej7_e ON (ej7_e.id = ej7_ue.enrolid AND ej7_e.courseid = :ej7_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu7_u.id LEFT JOIN {groups_members} gm7_gm2 ON (gm7_gm2.userid = eu7_u.id AND gm7_gm2.groupid = :gm7_42) WHERE 1 = 1 AND ej7_ue.status = :ej7_active AND ej7_e.status = :ej7_enabled AND ej7_ue.timestart < :ej7_now1 AND (ej7_ue.timeend = 0 OR ej7_ue.timeend > :ej7_now2) AND eu7_u.deleted = 0 AND eu7_u.id <> :eu7_guestid AND gm7_gm2.userid IS NOT NULL AND eu7_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu8_u.id FROM {user} eu8_u JOIN {user_enrolments} ej8_ue ON ej8_ue.userid = eu8_u.id JOIN {enrol} ej8_e ON (ej8_e.id = ej8_ue.enrolid AND ej8_e.courseid = :ej8_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu8_u.id LEFT JOIN {groups_members} gm8_gm2 ON (gm8_gm2.userid = eu8_u.id AND gm8_gm2.groupid = :gm8_48) WHERE 1 = 1 AND ej8_ue.status = :ej8_active AND ej8_e.status = :ej8_enabled AND ej8_ue.timestart < :ej8_now1 AND (ej8_ue.timeend = 0 OR ej8_ue.timeend > :ej8_now2) AND eu8_u.deleted = 0 AND eu8_u.id <> :eu8_guestid AND gm8_gm2.userid IS NOT NULL AND eu8_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu9_u.id FROM {user} eu9_u JOIN {user_enrolments} ej9_ue ON ej9_ue.userid = eu9_u.id JOIN {enrol} ej9_e ON (ej9_e.id = ej9_ue.enrolid AND ej9_e.courseid = :ej9_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu9_u.id LEFT JOIN {groups_members} gm9_gm2 ON (gm9_gm2.userid = eu9_u.id AND gm9_gm2.groupid = :gm9_54) WHERE 1 = 1 AND ej9_ue.status = :ej9_active AND ej9_e.status = :ej9_enabled AND ej9_ue.timestart < :ej9_now1 AND (ej9_ue.timeend = 0 OR ej9_ue.timeend > :ej9_now2) AND eu9_u.deleted = 0 AND eu9_u.id <> :eu9_guestid AND gm9_gm2.userid IS NOT NULL AND eu9_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu10_u.id FROM {user} eu10_u JOIN {user_enrolments} ej10_ue ON ej10_ue.userid = eu10_u.id JOIN {enrol} ej10_e ON (ej10_e.id = ej10_ue.enrolid AND ej10_e.courseid = :ej10_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu10_u.id LEFT JOIN {groups_members} gm10_gm2 ON (gm10_gm2.userid = eu10_u.id AND gm10_gm2.groupid = :gm10_60) WHERE 1 = 1 AND ej10_ue.status = :ej10_active AND ej10_e.status = :ej10_enabled AND ej10_ue.timestart < :ej10_now1 AND (ej10_ue.timeend = 0 OR ej10_ue.timeend > :ej10_now2) AND eu10_u.deleted = 0 AND eu10_u.id <> :eu10_guestid AND gm10_gm2.userid IS NOT NULL AND eu10_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu11_u.id FROM {user} eu11_u JOIN {user_enrolments} ej11_ue ON ej11_ue.userid = eu11_u.id JOIN {enrol} ej11_e ON (ej11_e.id = ej11_ue.enrolid AND ej11_e.courseid = :ej11_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu11_u.id LEFT JOIN {groups_members} gm11_gm2 ON (gm11_gm2.userid = eu11_u.id AND gm11_gm2.groupid = :gm11_66) WHERE 1 = 1 AND ej11_ue.status = :ej11_active AND ej11_e.status = :ej11_enabled AND ej11_ue.timestart < :ej11_now1 AND (ej11_ue.timeend = 0 OR ej11_ue.timeend > :ej11_now2) AND eu11_u.deleted = 0 AND eu11_u.id <> :eu11_guestid AND gm11_gm2.userid IS NOT NULL AND eu11_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu12_u.id FROM {user} eu12_u JOIN {user_enrolments} ej12_ue ON ej12_ue.userid = eu12_u.id JOIN {enrol} ej12_e ON (ej12_e.id = ej12_ue.enrolid AND ej12_e.courseid = :ej12_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu12_u.id LEFT JOIN {groups_members} gm12_gm2 ON (gm12_gm2.userid = eu12_u.id AND gm12_gm2.groupid = :gm12_72) WHERE 1 = 1 AND ej12_ue.status = :ej12_active AND ej12_e.status = :ej12_enabled AND ej12_ue.timestart < :ej12_now1 AND (ej12_ue.timeend = 0 OR ej12_ue.timeend > :ej12_now2) AND eu12_u.deleted = 0 AND eu12_u.id <> :eu12_guestid AND gm12_gm2.userid IS NOT NULL AND eu12_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu13_u.id FROM {user} eu13_u JOIN {user_enrolments} ej13_ue ON ej13_ue.userid = eu13_u.id JOIN {enrol} ej13_e ON (ej13_e.id = ej13_ue.enrolid AND ej13_e.courseid = :ej13_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu13_u.id LEFT JOIN {groups_members} gm13_gm2 ON (gm13_gm2.userid = eu13_u.id AND gm13_gm2.groupid = :gm13_78) WHERE 1 = 1 AND ej13_ue.status = :ej13_active AND ej13_e.status = :ej13_enabled AND ej13_ue.timestart < :ej13_now1 AND (ej13_ue.timeend = 0 OR ej13_ue.timeend > :ej13_now2) AND eu13_u.deleted = 0 AND eu13_u.id <> :eu13_guestid AND gm13_gm2.userid IS NOT NULL AND eu13_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu14_u.id FROM {user} eu14_u JOIN {user_enrolments} ej14_ue ON ej14_ue.userid = eu14_u.id JOIN {enrol} ej14_e ON (ej14_e.id = ej14_ue.enrolid AND ej14_e.courseid = :ej14_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu14_u.id LEFT JOIN {groups_members} gm14_gm2 ON (gm14_gm2.userid = eu14_u.id AND gm14_gm2.groupid = :gm14_84) WHERE 1 = 1 AND ej14_ue.status = :ej14_active AND ej14_e.status = :ej14_enabled AND ej14_ue.timestart < :ej14_now1 AND (ej14_ue.timeend = 0 OR ej14_ue.timeend > :ej14_now2) AND eu14_u.deleted = 0 AND eu14_u.id <> :eu14_guestid AND gm14_gm2.userid IS NOT NULL AND eu14_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu15_u.id FROM {user} eu15_u JOIN {user_enrolments} ej15_ue ON ej15_ue.userid = eu15_u.id JOIN {enrol} ej15_e ON (ej15_e.id = ej15_ue.enrolid AND ej15_e.courseid = :ej15_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu15_u.id LEFT JOIN {groups_members} gm15_gm2 ON (gm15_gm2.userid = eu15_u.id AND gm15_gm2.groupid = :gm15_90) WHERE 1 = 1 AND ej15_ue.status = :ej15_active AND ej15_e.status = :ej15_enabled AND ej15_ue.timestart < :ej15_now1 AND (ej15_ue.timeend = 0 OR ej15_ue.timeend > :ej15_now2) AND eu15_u.deleted = 0 AND eu15_u.id <> :eu15_guestid AND gm15_gm2.userid IS NOT NULL AND eu15_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu16_u.id FROM {user} eu16_u JOIN {user_enrolments} ej16_ue ON ej16_ue.userid = eu16_u.id JOIN {enrol} ej16_e ON (ej16_e.id = ej16_ue.enrolid AND ej16_e.courseid = :ej16_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu16_u.id LEFT JOIN {groups_members} gm16_gm2 ON (gm16_gm2.userid = eu16_u.id AND gm16_gm2.groupid = :gm16_96) WHERE 1 = 1 AND ej16_ue.status = :ej16_active AND ej16_e.status = :ej16_enabled AND ej16_ue.timestart < :ej16_now1 AND (ej16_ue.timeend = 0 OR ej16_ue.timeend > :ej16_now2) AND eu16_u.deleted = 0 AND eu16_u.id <> :eu16_guestid AND gm16_gm2.userid IS NOT NULL AND eu16_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu17_u.id FROM {user} eu17_u JOIN {user_enrolments} ej17_ue ON ej17_ue.userid = eu17_u.id JOIN {enrol} ej17_e ON (ej17_e.id = ej17_ue.enrolid AND ej17_e.courseid = :ej17_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu17_u.id LEFT JOIN {groups_members} gm17_gm2 ON (gm17_gm2.userid = eu17_u.id AND gm17_gm2.groupid = :gm17_102) WHERE 1 = 1 AND ej17_ue.status = :ej17_active AND ej17_e.status = :ej17_enabled AND ej17_ue.timestart < :ej17_now1 AND (ej17_ue.timeend = 0 OR ej17_ue.timeend > :ej17_now2) AND eu17_u.deleted = 0 AND eu17_u.id <> :eu17_guestid AND gm17_gm2.userid IS NOT NULL AND eu17_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu18_u.id FROM {user} eu18_u JOIN {user_enrolments} ej18_ue ON ej18_ue.userid = eu18_u.id JOIN {enrol} ej18_e ON (ej18_e.id = ej18_ue.enrolid AND ej18_e.courseid = :ej18_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu18_u.id LEFT JOIN {groups_members} gm18_gm2 ON (gm18_gm2.userid = eu18_u.id AND gm18_gm2.groupid = :gm18_108) WHERE 1 = 1 AND ej18_ue.status = :ej18_active AND ej18_e.status = :ej18_enabled AND ej18_ue.timestart < :ej18_now1 AND (ej18_ue.timeend = 0 OR ej18_ue.timeend > :ej18_now2) AND eu18_u.deleted = 0 AND eu18_u.id <> :eu18_guestid AND gm18_gm2.userid IS NOT NULL AND eu18_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu19_u.id FROM {user} eu19_u JOIN {user_enrolments} ej19_ue ON ej19_ue.userid = eu19_u.id JOIN {enrol} ej19_e ON (ej19_e.id = ej19_ue.enrolid AND ej19_e.courseid = :ej19_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu19_u.id LEFT JOIN {groups_members} gm19_gm2 ON (gm19_gm2.userid = eu19_u.id AND gm19_gm2.groupid = :gm19_114) WHERE 1 = 1 AND ej19_ue.status = :ej19_active AND ej19_e.status = :ej19_enabled AND ej19_ue.timestart < :ej19_now1 AND (ej19_ue.timeend = 0 OR ej19_ue.timeend > :ej19_now2) AND eu19_u.deleted = 0 AND eu19_u.id <> :eu19_guestid AND gm19_gm2.userid IS NOT NULL AND eu19_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu20_u.id FROM {user} eu20_u JOIN {user_enrolments} ej20_ue ON ej20_ue.userid = eu20_u.id JOIN {enrol} ej20_e ON (ej20_e.id = ej20_ue.enrolid AND ej20_e.courseid = :ej20_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu20_u.id LEFT JOIN {groups_members} gm20_gm2 ON (gm20_gm2.userid = eu20_u.id AND gm20_gm2.groupid = :gm20_120) WHERE 1 = 1 AND ej20_ue.status = :ej20_active AND ej20_e.status = :ej20_enabled AND ej20_ue.timestart < :ej20_now1 AND (ej20_ue.timeend = 0 OR ej20_ue.timeend > :ej20_now2) AND eu20_u.deleted = 0 AND eu20_u.id <> :eu20_guestid AND gm20_gm2.userid IS NOT NULL AND eu20_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu21_u.id FROM {user} eu21_u JOIN {user_enrolments} ej21_ue ON ej21_ue.userid = eu21_u.id JOIN {enrol} ej21_e ON (ej21_e.id = ej21_ue.enrolid AND ej21_e.courseid = :ej21_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu21_u.id LEFT JOIN {groups_members} gm21_gm2 ON (gm21_gm2.userid = eu21_u.id AND gm21_gm2.groupid = :gm21_126) WHERE 1 = 1 AND ej21_ue.status = :ej21_active AND ej21_e.status = :ej21_enabled AND ej21_ue.timestart < :ej21_now1 AND (ej21_ue.timeend = 0 OR ej21_ue.timeend > :ej21_now2) AND eu21_u.deleted = 0 AND eu21_u.id <> :eu21_guestid AND gm21_gm2.userid IS NOT NULL AND eu21_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu22_u.id FROM {user} eu22_u JOIN {user_enrolments} ej22_ue ON ej22_ue.userid = eu22_u.id JOIN {enrol} ej22_e ON (ej22_e.id = ej22_ue.enrolid AND ej22_e.courseid = :ej22_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu22_u.id LEFT JOIN {groups_members} gm22_gm2 ON (gm22_gm2.userid = eu22_u.id AND gm22_gm2.groupid = :gm22_132) WHERE 1 = 1 AND ej22_ue.status = :ej22_active AND ej22_e.status = :ej22_enabled AND ej22_ue.timestart < :ej22_now1 AND (ej22_ue.timeend = 0 OR ej22_ue.timeend > :ej22_now2) AND eu22_u.deleted = 0 AND eu22_u.id <> :eu22_guestid AND gm22_gm2.userid IS NOT NULL AND eu22_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu23_u.id FROM {user} eu23_u JOIN {user_enrolments} ej23_ue ON ej23_ue.userid = eu23_u.id JOIN {enrol} ej23_e ON (ej23_e.id = ej23_ue.enrolid AND ej23_e.courseid = :ej23_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu23_u.id LEFT JOIN {groups_members} gm23_gm2 ON (gm23_gm2.userid = eu23_u.id AND gm23_gm2.groupid = :gm23_138) WHERE 1 = 1 AND ej23_ue.status = :ej23_active AND ej23_e.status = :ej23_enabled AND ej23_ue.timestart < :ej23_now1 AND (ej23_ue.timeend = 0 OR ej23_ue.timeend > :ej23_now2) AND eu23_u.deleted = 0 AND eu23_u.id <> :eu23_guestid AND gm23_gm2.userid IS NOT NULL AND eu23_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu24_u.id FROM {user} eu24_u JOIN {user_enrolments} ej24_ue ON ej24_ue.userid = eu24_u.id JOIN {enrol} ej24_e ON (ej24_e.id = ej24_ue.enrolid AND ej24_e.courseid = :ej24_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu24_u.id LEFT JOIN {groups_members} gm24_gm2 ON (gm24_gm2.userid = eu24_u.id AND gm24_gm2.groupid = :gm24_144) WHERE 1 = 1 AND ej24_ue.status = :ej24_active AND ej24_e.status = :ej24_enabled AND ej24_ue.timestart < :ej24_now1 AND (ej24_ue.timeend = 0 OR ej24_ue.timeend > :ej24_now2) AND eu24_u.deleted = 0 AND eu24_u.id <> :eu24_guestid AND gm24_gm2.userid IS NOT NULL AND eu24_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu25_u.id FROM {user} eu25_u JOIN {user_enrolments} ej25_ue ON ej25_ue.userid = eu25_u.id JOIN {enrol} ej25_e ON (ej25_e.id = ej25_ue.enrolid AND ej25_e.courseid = :ej25_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu25_u.id LEFT JOIN {groups_members} gm25_gm2 ON (gm25_gm2.userid = eu25_u.id AND gm25_gm2.groupid = :gm25_150) WHERE 1 = 1 AND ej25_ue.status = :ej25_active AND ej25_e.status = :ej25_enabled AND ej25_ue.timestart < :ej25_now1 AND (ej25_ue.timeend = 0 OR ej25_ue.timeend > :ej25_now2) AND eu25_u.deleted = 0 AND eu25_u.id <> :eu25_guestid AND gm25_gm2.userid IS NOT NULL AND eu25_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu26_u.id FROM {user} eu26_u JOIN {user_enrolments} ej26_ue ON ej26_ue.userid = eu26_u.id JOIN {enrol} ej26_e ON (ej26_e.id = ej26_ue.enrolid AND ej26_e.courseid = :ej26_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu26_u.id LEFT JOIN {groups_members} gm26_gm2 ON (gm26_gm2.userid = eu26_u.id AND gm26_gm2.groupid = :gm26_156) WHERE 1 = 1 AND ej26_ue.status = :ej26_active AND ej26_e.status = :ej26_enabled AND ej26_ue.timestart < :ej26_now1 AND (ej26_ue.timeend = 0 OR ej26_ue.timeend > :ej26_now2) AND eu26_u.deleted = 0 AND eu26_u.id <> :eu26_guestid AND gm26_gm2.userid IS NOT NULL AND eu26_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu27_u.id FROM {user} eu27_u JOIN {user_enrolments} ej27_ue ON ej27_ue.userid = eu27_u.id JOIN {enrol} ej27_e ON (ej27_e.id = ej27_ue.enrolid AND ej27_e.courseid = :ej27_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu27_u.id LEFT JOIN {groups_members} gm27_gm2 ON (gm27_gm2.userid = eu27_u.id AND gm27_gm2.groupid = :gm27_162) WHERE 1 = 1 AND ej27_ue.status = :ej27_active AND ej27_e.status = :ej27_enabled AND ej27_ue.timestart < :ej27_now1 AND (ej27_ue.timeend = 0 OR ej27_ue.timeend > :ej27_now2) AND eu27_u.deleted = 0 AND eu27_u.id <> :eu27_guestid AND gm27_gm2.userid IS NOT NULL AND eu27_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu28_u.id FROM {user} eu28_u JOIN {user_enrolments} ej28_ue ON ej28_ue.userid = eu28_u.id JOIN {enrol} ej28_e ON (ej28_e.id = ej28_ue.enrolid AND ej28_e.courseid = :ej28_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu28_u.id LEFT JOIN {groups_members} gm28_gm2 ON (gm28_gm2.userid = eu28_u.id AND gm28_gm2.groupid = :gm28_168) WHERE 1 = 1 AND ej28_ue.status = :ej28_active AND ej28_e.status = :ej28_enabled AND ej28_ue.timestart < :ej28_now1 AND (ej28_ue.timeend = 0 OR ej28_ue.timeend > :ej28_now2) AND eu28_u.deleted = 0 AND eu28_u.id <> :eu28_guestid AND gm28_gm2.userid IS NOT NULL AND eu28_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu29_u.id FROM {user} eu29_u JOIN {user_enrolments} ej29_ue ON ej29_ue.userid = eu29_u.id JOIN {enrol} ej29_e ON (ej29_e.id = ej29_ue.enrolid AND ej29_e.courseid = :ej29_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu29_u.id LEFT JOIN {groups_members} gm29_gm2 ON (gm29_gm2.userid = eu29_u.id AND gm29_gm2.groupid = :gm29_174) WHERE 1 = 1 AND ej29_ue.status = :ej29_active AND ej29_e.status = :ej29_enabled AND ej29_ue.timestart < :ej29_now1 AND (ej29_ue.timeend = 0 OR ej29_ue.timeend > :ej29_now2) AND eu29_u.deleted = 0 AND eu29_u.id <> :eu29_guestid AND gm29_gm2.userid IS NOT NULL AND eu29_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu30_u.id FROM {user} eu30_u JOIN {user_enrolments} ej30_ue ON ej30_ue.userid = eu30_u.id JOIN {enrol} ej30_e ON (ej30_e.id = ej30_ue.enrolid AND ej30_e.courseid = :ej30_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu30_u.id LEFT JOIN {groups_members} gm30_gm2 ON (gm30_gm2.userid = eu30_u.id AND gm30_gm2.groupid = :gm30_180) WHERE 1 = 1 AND ej30_ue.status = :ej30_active AND ej30_e.status = :ej30_enabled AND ej30_ue.timestart < :ej30_now1 AND (ej30_ue.timeend = 0 OR ej30_ue.timeend > :ej30_now2) AND eu30_u.deleted = 0 AND eu30_u.id <> :eu30_guestid AND gm30_gm2.userid IS NOT NULL AND eu30_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu31_u.id FROM {user} eu31_u JOIN {user_enrolments} ej31_ue ON ej31_ue.userid = eu31_u.id JOIN {enrol} ej31_e ON (ej31_e.id = ej31_ue.enrolid AND ej31_e.courseid = :ej31_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu31_u.id LEFT JOIN {groups_members} gm31_gm2 ON (gm31_gm2.userid = eu31_u.id AND gm31_gm2.groupid = :gm31_186) WHERE 1 = 1 AND ej31_ue.status = :ej31_active AND ej31_e.status = :ej31_enabled AND ej31_ue.timestart < :ej31_now1 AND (ej31_ue.timeend = 0 OR ej31_ue.timeend > :ej31_now2) AND eu31_u.deleted = 0 AND eu31_u.id <> :eu31_guestid AND gm31_gm2.userid IS NOT NULL AND eu31_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu32_u.id FROM {user} eu32_u JOIN {user_enrolments} ej32_ue ON ej32_ue.userid = eu32_u.id JOIN {enrol} ej32_e ON (ej32_e.id = ej32_ue.enrolid AND ej32_e.courseid = :ej32_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu32_u.id LEFT JOIN {groups_members} gm32_gm2 ON (gm32_gm2.userid = eu32_u.id AND gm32_gm2.groupid = :gm32_192) WHERE 1 = 1 AND ej32_ue.status = :ej32_active AND ej32_e.status = :ej32_enabled AND ej32_ue.timestart < :ej32_now1 AND (ej32_ue.timeend = 0 OR ej32_ue.timeend > :ej32_now2) AND eu32_u.deleted = 0 AND eu32_u.id <> :eu32_guestid AND gm32_gm2.userid IS NOT NULL AND eu32_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu33_u.id FROM {user} eu33_u JOIN {user_enrolments} ej33_ue ON ej33_ue.userid = eu33_u.id JOIN {enrol} ej33_e ON (ej33_e.id = ej33_ue.enrolid AND ej33_e.courseid = :ej33_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu33_u.id LEFT JOIN {groups_members} gm33_gm2 ON (gm33_gm2.userid = eu33_u.id AND gm33_gm2.groupid = :gm33_198) WHERE 1 = 1 AND ej33_ue.status = :ej33_active AND ej33_e.status = :ej33_enabled AND ej33_ue.timestart < :ej33_now1 AND (ej33_ue.timeend = 0 OR ej33_ue.timeend > :ej33_now2) AND eu33_u.deleted = 0 AND eu33_u.id <> :eu33_guestid AND gm33_gm2.userid IS NOT NULL AND eu33_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu34_u.id FROM {user} eu34_u JOIN {user_enrolments} ej34_ue ON ej34_ue.userid = eu34_u.id JOIN {enrol} ej34_e ON (ej34_e.id = ej34_ue.enrolid AND ej34_e.courseid = :ej34_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu34_u.id LEFT JOIN {groups_members} gm34_gm2 ON (gm34_gm2.userid = eu34_u.id AND gm34_gm2.groupid = :gm34_204) WHERE 1 = 1 AND ej34_ue.status = :ej34_active AND ej34_e.status = :ej34_enabled AND ej34_ue.timestart < :ej34_now1 AND (ej34_ue.timeend = 0 OR ej34_ue.timeend > :ej34_now2) AND eu34_u.deleted = 0 AND eu34_u.id <> :eu34_guestid AND gm34_gm2.userid IS NOT NULL AND eu34_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu35_u.id FROM {user} eu35_u JOIN {user_enrolments} ej35_ue ON ej35_ue.userid = eu35_u.id JOIN {enrol} ej35_e ON (ej35_e.id = ej35_ue.enrolid AND ej35_e.courseid = :ej35_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu35_u.id LEFT JOIN {groups_members} gm35_gm2 ON (gm35_gm2.userid = eu35_u.id AND gm35_gm2.groupid = :gm35_210) WHERE 1 = 1 AND ej35_ue.status = :ej35_active AND ej35_e.status = :ej35_enabled AND ej35_ue.timestart < :ej35_now1 AND (ej35_ue.timeend = 0 OR ej35_ue.timeend > :ej35_now2) AND eu35_u.deleted = 0 AND eu35_u.id <> :eu35_guestid AND gm35_gm2.userid IS NOT NULL AND eu35_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu36_u.id FROM {user} eu36_u JOIN {user_enrolments} ej36_ue ON ej36_ue.userid = eu36_u.id JOIN {enrol} ej36_e ON (ej36_e.id = ej36_ue.enrolid AND ej36_e.courseid = :ej36_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu36_u.id LEFT JOIN {groups_members} gm36_gm2 ON (gm36_gm2.userid = eu36_u.id AND gm36_gm2.groupid = :gm36_216) WHERE 1 = 1 AND ej36_ue.status = :ej36_active AND ej36_e.status = :ej36_enabled AND ej36_ue.timestart < :ej36_now1 AND (ej36_ue.timeend = 0 OR ej36_ue.timeend > :ej36_now2) AND eu36_u.deleted = 0 AND eu36_u.id <> :eu36_guestid AND gm36_gm2.userid IS NOT NULL AND eu36_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu37_u.id FROM {user} eu37_u JOIN {user_enrolments} ej37_ue ON ej37_ue.userid = eu37_u.id JOIN {enrol} ej37_e ON (ej37_e.id = ej37_ue.enrolid AND ej37_e.courseid = :ej37_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu37_u.id LEFT JOIN {groups_members} gm37_gm2 ON (gm37_gm2.userid = eu37_u.id AND gm37_gm2.groupid = :gm37_222) WHERE 1 = 1 AND ej37_ue.status = :ej37_active AND ej37_e.status = :ej37_enabled AND ej37_ue.timestart < :ej37_now1 AND (ej37_ue.timeend = 0 OR ej37_ue.timeend > :ej37_now2) AND eu37_u.deleted = 0 AND eu37_u.id <> :eu37_guestid AND gm37_gm2.userid IS NOT NULL AND eu37_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu38_u.id FROM {user} eu38_u JOIN {user_enrolments} ej38_ue ON ej38_ue.userid = eu38_u.id JOIN {enrol} ej38_e ON (ej38_e.id = ej38_ue.enrolid AND ej38_e.courseid = :ej38_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu38_u.id LEFT JOIN {groups_members} gm38_gm2 ON (gm38_gm2.userid = eu38_u.id AND gm38_gm2.groupid = :gm38_228) WHERE 1 = 1 AND ej38_ue.status = :ej38_active AND ej38_e.status = :ej38_enabled AND ej38_ue.timestart < :ej38_now1 AND (ej38_ue.timeend = 0 OR ej38_ue.timeend > :ej38_now2) AND eu38_u.deleted = 0 AND eu38_u.id <> :eu38_guestid AND gm38_gm2.userid IS NOT NULL AND eu38_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu39_u.id FROM {user} eu39_u JOIN {user_enrolments} ej39_ue ON ej39_ue.userid = eu39_u.id JOIN {enrol} ej39_e ON (ej39_e.id = ej39_ue.enrolid AND ej39_e.courseid = :ej39_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu39_u.id LEFT JOIN {groups_members} gm39_gm2 ON (gm39_gm2.userid = eu39_u.id AND gm39_gm2.groupid = :gm39_234) WHERE 1 = 1 AND ej39_ue.status = :ej39_active AND ej39_e.status = :ej39_enabled AND ej39_ue.timestart < :ej39_now1 AND (ej39_ue.timeend = 0 OR ej39_ue.timeend > :ej39_now2) AND eu39_u.deleted = 0 AND eu39_u.id <> :eu39_guestid AND gm39_gm2.userid IS NOT NULL AND eu39_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu40_u.id FROM {user} eu40_u JOIN {user_enrolments} ej40_ue ON ej40_ue.userid = eu40_u.id JOIN {enrol} ej40_e ON (ej40_e.id = ej40_ue.enrolid AND ej40_e.courseid = :ej40_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu40_u.id LEFT JOIN {groups_members} gm40_gm2 ON (gm40_gm2.userid = eu40_u.id AND gm40_gm2.groupid = :gm40_240) WHERE 1 = 1 AND ej40_ue.status = :ej40_active AND ej40_e.status = :ej40_enabled AND ej40_ue.timestart < :ej40_now1 AND (ej40_ue.timeend = 0 OR ej40_ue.timeend > :ej40_now2) AND eu40_u.deleted = 0 AND eu40_u.id <> :eu40_guestid AND gm40_gm2.userid IS NOT NULL AND eu40_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu41_u.id FROM {user} eu41_u JOIN {user_enrolments} ej41_ue ON ej41_ue.userid = eu41_u.id JOIN {enrol} ej41_e ON (ej41_e.id = ej41_ue.enrolid AND ej41_e.courseid = :ej41_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu41_u.id LEFT JOIN {groups_members} gm41_gm2 ON (gm41_gm2.userid = eu41_u.id AND gm41_gm2.groupid = :gm41_246) WHERE 1 = 1 AND ej41_ue.status = :ej41_active AND ej41_e.status = :ej41_enabled AND ej41_ue.timestart < :ej41_now1 AND (ej41_ue.timeend = 0 OR ej41_ue.timeend > :ej41_now2) AND eu41_u.deleted = 0 AND eu41_u.id <> :eu41_guestid AND gm41_gm2.userid IS NOT NULL AND eu41_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu42_u.id FROM {user} eu42_u JOIN {user_enrolments} ej42_ue ON ej42_ue.userid = eu42_u.id JOIN {enrol} ej42_e ON (ej42_e.id = ej42_ue.enrolid AND ej42_e.courseid = :ej42_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu42_u.id LEFT JOIN {groups_members} gm42_gm2 ON (gm42_gm2.userid = eu42_u.id AND gm42_gm2.groupid = :gm42_252) WHERE 1 = 1 AND ej42_ue.status = :ej42_active AND ej42_e.status = :ej42_enabled AND ej42_ue.timestart < :ej42_now1 AND (ej42_ue.timeend = 0 OR ej42_ue.timeend > :ej42_now2) AND eu42_u.deleted = 0 AND eu42_u.id <> :eu42_guestid AND gm42_gm2.userid IS NOT NULL AND eu42_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu43_u.id FROM {user} eu43_u JOIN {user_enrolments} ej43_ue ON ej43_ue.userid = eu43_u.id JOIN {enrol} ej43_e ON (ej43_e.id = ej43_ue.enrolid AND ej43_e.courseid = :ej43_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu43_u.id LEFT JOIN {groups_members} gm43_gm2 ON (gm43_gm2.userid = eu43_u.id AND gm43_gm2.groupid = :gm43_258) WHERE 1 = 1 AND ej43_ue.status = :ej43_active AND ej43_e.status = :ej43_enabled AND ej43_ue.timestart < :ej43_now1 AND (ej43_ue.timeend = 0 OR ej43_ue.timeend > :ej43_now2) AND eu43_u.deleted = 0 AND eu43_u.id <> :eu43_guestid AND gm43_gm2.userid IS NOT NULL AND eu43_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu44_u.id FROM {user} eu44_u JOIN {user_enrolments} ej44_ue ON ej44_ue.userid = eu44_u.id JOIN {enrol} ej44_e ON (ej44_e.id = ej44_ue.enrolid AND ej44_e.courseid = :ej44_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu44_u.id LEFT JOIN {groups_members} gm44_gm2 ON (gm44_gm2.userid = eu44_u.id AND gm44_gm2.groupid = :gm44_264) WHERE 1 = 1 AND ej44_ue.status = :ej44_active AND ej44_e.status = :ej44_enabled AND ej44_ue.timestart < :ej44_now1 AND (ej44_ue.timeend = 0 OR ej44_ue.timeend > :ej44_now2) AND eu44_u.deleted = 0 AND eu44_u.id <> :eu44_guestid AND gm44_gm2.userid IS NOT NULL AND eu44_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu45_u.id FROM {user} eu45_u JOIN {user_enrolments} ej45_ue ON ej45_ue.userid = eu45_u.id JOIN {enrol} ej45_e ON (ej45_e.id = ej45_ue.enrolid AND ej45_e.courseid = :ej45_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu45_u.id LEFT JOIN {groups_members} gm45_gm2 ON (gm45_gm2.userid = eu45_u.id AND gm45_gm2.groupid = :gm45_270) WHERE 1 = 1 AND ej45_ue.status = :ej45_active AND ej45_e.status = :ej45_enabled AND ej45_ue.timestart < :ej45_now1 AND (ej45_ue.timeend = 0 OR ej45_ue.timeend > :ej45_now2) AND eu45_u.deleted = 0 AND eu45_u.id <> :eu45_guestid AND gm45_gm2.userid IS NOT NULL AND eu45_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu46_u.id FROM {user} eu46_u JOIN {user_enrolments} ej46_ue ON ej46_ue.userid = eu46_u.id JOIN {enrol} ej46_e ON (ej46_e.id = ej46_ue.enrolid AND ej46_e.courseid = :ej46_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu46_u.id LEFT JOIN {groups_members} gm46_gm2 ON (gm46_gm2.userid = eu46_u.id AND gm46_gm2.groupid = :gm46_276) WHERE 1 = 1 AND ej46_ue.status = :ej46_active AND ej46_e.status = :ej46_enabled AND ej46_ue.timestart < :ej46_now1 AND (ej46_ue.timeend = 0 OR ej46_ue.timeend > :ej46_now2) AND eu46_u.deleted = 0 AND eu46_u.id <> :eu46_guestid AND gm46_gm2.userid IS NOT NULL AND eu46_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu47_u.id FROM {user} eu47_u JOIN {user_enrolments} ej47_ue ON ej47_ue.userid = eu47_u.id JOIN {enrol} ej47_e ON (ej47_e.id = ej47_ue.enrolid AND ej47_e.courseid = :ej47_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu47_u.id LEFT JOIN {groups_members} gm47_gm2 ON (gm47_gm2.userid = eu47_u.id AND gm47_gm2.groupid = :gm47_282) WHERE 1 = 1 AND ej47_ue.status = :ej47_active AND ej47_e.status = :ej47_enabled AND ej47_ue.timestart < :ej47_now1 AND (ej47_ue.timeend = 0 OR ej47_ue.timeend > :ej47_now2) AND eu47_u.deleted = 0 AND eu47_u.id <> :eu47_guestid AND gm47_gm2.userid IS NOT NULL AND eu47_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu48_u.id FROM {user} eu48_u JOIN {user_enrolments} ej48_ue ON ej48_ue.userid = eu48_u.id JOIN {enrol} ej48_e ON (ej48_e.id = ej48_ue.enrolid AND ej48_e.courseid = :ej48_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu48_u.id LEFT JOIN {groups_members} gm48_gm2 ON (gm48_gm2.userid = eu48_u.id AND gm48_gm2.groupid = :gm48_288) WHERE 1 = 1 AND ej48_ue.status = :ej48_active AND ej48_e.status = :ej48_enabled AND ej48_ue.timestart < :ej48_now1 AND (ej48_ue.timeend = 0 OR ej48_ue.timeend > :ej48_now2) AND eu48_u.deleted = 0 AND eu48_u.id <> :eu48_guestid AND gm48_gm2.userid IS NOT NULL AND eu48_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu49_u.id FROM {user} eu49_u JOIN {user_enrolments} ej49_ue ON ej49_ue.userid = eu49_u.id JOIN {enrol} ej49_e ON (ej49_e.id = ej49_ue.enrolid AND ej49_e.courseid = :ej49_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu49_u.id LEFT JOIN {groups_members} gm49_gm2 ON (gm49_gm2.userid = eu49_u.id AND gm49_gm2.groupid = :gm49_294) WHERE 1 = 1 AND ej49_ue.status = :ej49_active AND ej49_e.status = :ej49_enabled AND ej49_ue.timestart < :ej49_now1 AND (ej49_ue.timeend = 0 OR ej49_ue.timeend > :ej49_now2) AND eu49_u.deleted = 0 AND eu49_u.id <> :eu49_guestid AND gm49_gm2.userid IS NOT NULL AND eu49_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu50_u.id FROM {user} eu50_u JOIN {user_enrolments} ej50_ue ON ej50_ue.userid = eu50_u.id JOIN {enrol} ej50_e ON (ej50_e.id = ej50_ue.enrolid AND ej50_e.courseid = :ej50_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu50_u.id LEFT JOIN {groups_members} gm50_gm2 ON (gm50_gm2.userid = eu50_u.id AND gm50_gm2.groupid = :gm50_300) WHERE 1 = 1 AND ej50_ue.status = :ej50_active AND ej50_e.status = :ej50_enabled AND ej50_ue.timestart < :ej50_now1 AND (ej50_ue.timeend = 0 OR ej50_ue.timeend > :ej50_now2) AND eu50_u.deleted = 0 AND eu50_u.id <> :eu50_guestid AND gm50_gm2.userid IS NOT NULL AND eu50_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu51_u.id FROM {user} eu51_u JOIN {user_enrolments} ej51_ue ON ej51_ue.userid = eu51_u.id JOIN {enrol} ej51_e ON (ej51_e.id = ej51_ue.enrolid AND ej51_e.courseid = :ej51_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu51_u.id LEFT JOIN {groups_members} gm51_gm2 ON (gm51_gm2.userid = eu51_u.id AND gm51_gm2.groupid = :gm51_306) WHERE 1 = 1 AND ej51_ue.status = :ej51_active AND ej51_e.status = :ej51_enabled AND ej51_ue.timestart < :ej51_now1 AND (ej51_ue.timeend = 0 OR ej51_ue.timeend > :ej51_now2) AND eu51_u.deleted = 0 AND eu51_u.id <> :eu51_guestid AND gm51_gm2.userid IS NOT NULL AND eu51_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu52_u.id FROM {user} eu52_u JOIN {user_enrolments} ej52_ue ON ej52_ue.userid = eu52_u.id JOIN {enrol} ej52_e ON (ej52_e.id = ej52_ue.enrolid AND ej52_e.courseid = :ej52_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu52_u.id LEFT JOIN {groups_members} gm52_gm2 ON (gm52_gm2.userid = eu52_u.id AND gm52_gm2.groupid = :gm52_312) WHERE 1 = 1 AND ej52_ue.status = :ej52_active AND ej52_e.status = :ej52_enabled AND ej52_ue.timestart < :ej52_now1 AND (ej52_ue.timeend = 0 OR ej52_ue.timeend > :ej52_now2) AND eu52_u.deleted = 0 AND eu52_u.id <> :eu52_guestid AND gm52_gm2.userid IS NOT NULL AND eu52_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu53_u.id FROM {user} eu53_u JOIN {user_enrolments} ej53_ue ON ej53_ue.userid = eu53_u.id JOIN {enrol} ej53_e ON (ej53_e.id = ej53_ue.enrolid AND ej53_e.courseid = :ej53_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu53_u.id LEFT JOIN {groups_members} gm53_gm2 ON (gm53_gm2.userid = eu53_u.id AND gm53_gm2.groupid = :gm53_318) WHERE 1 = 1 AND ej53_ue.status = :ej53_active AND ej53_e.status = :ej53_enabled AND ej53_ue.timestart < :ej53_now1 AND (ej53_ue.timeend = 0 OR ej53_ue.timeend > :ej53_now2) AND eu53_u.deleted = 0 AND eu53_u.id <> :eu53_guestid AND gm53_gm2.userid IS NOT NULL AND eu53_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu54_u.id FROM {user} eu54_u JOIN {user_enrolments} ej54_ue ON ej54_ue.userid = eu54_u.id JOIN {enrol} ej54_e ON (ej54_e.id = ej54_ue.enrolid AND ej54_e.courseid = :ej54_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu54_u.id LEFT JOIN {groups_members} gm54_gm2 ON (gm54_gm2.userid = eu54_u.id AND gm54_gm2.groupid = :gm54_324) WHERE 1 = 1 AND ej54_ue.status = :ej54_active AND ej54_e.status = :ej54_enabled AND ej54_ue.timestart < :ej54_now1 AND (ej54_ue.timeend = 0 OR ej54_ue.timeend > :ej54_now2) AND eu54_u.deleted = 0 AND eu54_u.id <> :eu54_guestid AND gm54_gm2.userid IS NOT NULL AND eu54_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu55_u.id FROM {user} eu55_u JOIN {user_enrolments} ej55_ue ON ej55_ue.userid = eu55_u.id JOIN {enrol} ej55_e ON (ej55_e.id = ej55_ue.enrolid AND ej55_e.courseid = :ej55_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu55_u.id LEFT JOIN {groups_members} gm55_gm2 ON (gm55_gm2.userid = eu55_u.id AND gm55_gm2.groupid = :gm55_330) WHERE 1 = 1 AND ej55_ue.status = :ej55_active AND ej55_e.status = :ej55_enabled AND ej55_ue.timestart < :ej55_now1 AND (ej55_ue.timeend = 0 OR ej55_ue.timeend > :ej55_now2) AND eu55_u.deleted = 0 AND eu55_u.id <> :eu55_guestid AND gm55_gm2.userid IS NOT NULL AND eu55_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu56_u.id FROM {user} eu56_u JOIN {user_enrolments} ej56_ue ON ej56_ue.userid = eu56_u.id JOIN {enrol} ej56_e ON (ej56_e.id = ej56_ue.enrolid AND ej56_e.courseid = :ej56_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu56_u.id LEFT JOIN {groups_members} gm56_gm2 ON (gm56_gm2.userid = eu56_u.id AND gm56_gm2.groupid = :gm56_336) WHERE 1 = 1 AND ej56_ue.status = :ej56_active AND ej56_e.status = :ej56_enabled AND ej56_ue.timestart < :ej56_now1 AND (ej56_ue.timeend = 0 OR ej56_ue.timeend > :ej56_now2) AND eu56_u.deleted = 0 AND eu56_u.id <> :eu56_guestid AND gm56_gm2.userid IS NOT NULL AND eu56_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu57_u.id FROM {user} eu57_u JOIN {user_enrolments} ej57_ue ON ej57_ue.userid = eu57_u.id JOIN {enrol} ej57_e ON (ej57_e.id = ej57_ue.enrolid AND ej57_e.courseid = :ej57_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu57_u.id LEFT JOIN {groups_members} gm57_gm2 ON (gm57_gm2.userid = eu57_u.id AND gm57_gm2.groupid = :gm57_342) WHERE 1 = 1 AND ej57_ue.status = :ej57_active AND ej57_e.status = :ej57_enabled AND ej57_ue.timestart < :ej57_now1 AND (ej57_ue.timeend = 0 OR ej57_ue.timeend > :ej57_now2) AND eu57_u.deleted = 0 AND eu57_u.id <> :eu57_guestid AND gm57_gm2.userid IS NOT NULL AND eu57_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu58_u.id FROM {user} eu58_u JOIN {user_enrolments} ej58_ue ON ej58_ue.userid = eu58_u.id JOIN {enrol} ej58_e ON (ej58_e.id = ej58_ue.enrolid AND ej58_e.courseid = :ej58_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu58_u.id LEFT JOIN {groups_members} gm58_gm2 ON (gm58_gm2.userid = eu58_u.id AND gm58_gm2.groupid = :gm58_348) WHERE 1 = 1 AND ej58_ue.status = :ej58_active AND ej58_e.status = :ej58_enabled AND ej58_ue.timestart < :ej58_now1 AND (ej58_ue.timeend = 0 OR ej58_ue.timeend > :ej58_now2) AND eu58_u.deleted = 0 AND eu58_u.id <> :eu58_guestid AND gm58_gm2.userid IS NOT NULL AND eu58_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu59_u.id FROM {user} eu59_u JOIN {user_enrolments} ej59_ue ON ej59_ue.userid = eu59_u.id JOIN {enrol} ej59_e ON (ej59_e.id = ej59_ue.enrolid AND ej59_e.courseid = :ej59_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu59_u.id LEFT JOIN {groups_members} gm59_gm2 ON (gm59_gm2.userid = eu59_u.id AND gm59_gm2.groupid = :gm59_354) WHERE 1 = 1 AND ej59_ue.status = :ej59_active AND ej59_e.status = :ej59_enabled AND ej59_ue.timestart < :ej59_now1 AND (ej59_ue.timeend = 0 OR ej59_ue.timeend > :ej59_now2) AND eu59_u.deleted = 0 AND eu59_u.id <> :eu59_guestid AND gm59_gm2.userid IS NOT NULL AND eu59_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu60_u.id FROM {user} eu60_u JOIN {user_enrolments} ej60_ue ON ej60_ue.userid = eu60_u.id JOIN {enrol} ej60_e ON (ej60_e.id = ej60_ue.enrolid AND ej60_e.courseid = :ej60_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu60_u.id LEFT JOIN {groups_members} gm60_gm2 ON (gm60_gm2.userid = eu60_u.id AND gm60_gm2.groupid = :gm60_360) WHERE 1 = 1 AND ej60_ue.status = :ej60_active AND ej60_e.status = :ej60_enabled AND ej60_ue.timestart < :ej60_now1 AND (ej60_ue.timeend = 0 OR ej60_ue.timeend > :ej60_now2) AND eu60_u.deleted = 0 AND eu60_u.id <> :eu60_guestid AND gm60_gm2.userid IS NOT NULL AND eu60_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu61_u.id FROM {user} eu61_u JOIN {user_enrolments} ej61_ue ON ej61_ue.userid = eu61_u.id JOIN {enrol} ej61_e ON (ej61_e.id = ej61_ue.enrolid AND ej61_e.courseid = :ej61_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu61_u.id LEFT JOIN {groups_members} gm61_gm2 ON (gm61_gm2.userid = eu61_u.id AND gm61_gm2.groupid = :gm61_366) WHERE 1 = 1 AND ej61_ue.status = :ej61_active AND ej61_e.status = :ej61_enabled AND ej61_ue.timestart < :ej61_now1 AND (ej61_ue.timeend = 0 OR ej61_ue.timeend > :ej61_now2) AND eu61_u.deleted = 0 AND eu61_u.id <> :eu61_guestid AND gm61_gm2.userid IS NOT NULL AND eu61_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu62_u.id FROM {user} eu62_u JOIN {user_enrolments} ej62_ue ON ej62_ue.userid = eu62_u.id JOIN {enrol} ej62_e ON (ej62_e.id = ej62_ue.enrolid AND ej62_e.courseid = :ej62_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu62_u.id LEFT JOIN {groups_members} gm62_gm2 ON (gm62_gm2.userid = eu62_u.id AND gm62_gm2.groupid = :gm62_372) WHERE 1 = 1 AND ej62_ue.status = :ej62_active AND ej62_e.status = :ej62_enabled AND ej62_ue.timestart < :ej62_now1 AND (ej62_ue.timeend = 0 OR ej62_ue.timeend > :ej62_now2) AND eu62_u.deleted = 0 AND eu62_u.id <> :eu62_guestid AND gm62_gm2.userid IS NOT NULL AND eu62_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu63_u.id FROM {user} eu63_u JOIN {user_enrolments} ej63_ue ON ej63_ue.userid = eu63_u.id JOIN {enrol} ej63_e ON (ej63_e.id = ej63_ue.enrolid AND ej63_e.courseid = :ej63_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu63_u.id LEFT JOIN {groups_members} gm63_gm2 ON (gm63_gm2.userid = eu63_u.id AND gm63_gm2.groupid = :gm63_378) WHERE 1 = 1 AND ej63_ue.status = :ej63_active AND ej63_e.status = :ej63_enabled AND ej63_ue.timestart < :ej63_now1 AND (ej63_ue.timeend = 0 OR ej63_ue.timeend > :ej63_now2) AND eu63_u.deleted = 0 AND eu63_u.id <> :eu63_guestid AND gm63_gm2.userid IS NOT NULL AND eu63_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu64_u.id FROM {user} eu64_u JOIN {user_enrolments} ej64_ue ON ej64_ue.userid = eu64_u.id JOIN {enrol} ej64_e ON (ej64_e.id = ej64_ue.enrolid AND ej64_e.courseid = :ej64_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu64_u.id LEFT JOIN {groups_members} gm64_gm2 ON (gm64_gm2.userid = eu64_u.id AND gm64_gm2.groupid = :gm64_384) WHERE 1 = 1 AND ej64_ue.status = :ej64_active AND ej64_e.status = :ej64_enabled AND ej64_ue.timestart < :ej64_now1 AND (ej64_ue.timeend = 0 OR ej64_ue.timeend > :ej64_now2) AND eu64_u.deleted = 0 AND eu64_u.id <> :eu64_guestid AND gm64_gm2.userid IS NOT NULL AND eu64_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu65_u.id FROM {user} eu65_u JOIN {user_enrolments} ej65_ue ON ej65_ue.userid = eu65_u.id JOIN {enrol} ej65_e ON (ej65_e.id = ej65_ue.enrolid AND ej65_e.courseid = :ej65_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu65_u.id LEFT JOIN {groups_members} gm65_gm2 ON (gm65_gm2.userid = eu65_u.id AND gm65_gm2.groupid = :gm65_390) WHERE 1 = 1 AND ej65_ue.status = :ej65_active AND ej65_e.status = :ej65_enabled AND ej65_ue.timestart < :ej65_now1 AND (ej65_ue.timeend = 0 OR ej65_ue.timeend > :ej65_now2) AND eu65_u.deleted = 0 AND eu65_u.id <> :eu65_guestid AND gm65_gm2.userid IS NOT NULL AND eu65_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu66_u.id FROM {user} eu66_u JOIN {user_enrolments} ej66_ue ON ej66_ue.userid = eu66_u.id JOIN {enrol} ej66_e ON (ej66_e.id = ej66_ue.enrolid AND ej66_e.courseid = :ej66_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu66_u.id LEFT JOIN {groups_members} gm66_gm2 ON (gm66_gm2.userid = eu66_u.id AND gm66_gm2.groupid = :gm66_396) WHERE 1 = 1 AND ej66_ue.status = :ej66_active AND ej66_e.status = :ej66_enabled AND ej66_ue.timestart < :ej66_now1 AND (ej66_ue.timeend = 0 OR ej66_ue.timeend > :ej66_now2) AND eu66_u.deleted = 0 AND eu66_u.id <> :eu66_guestid AND gm66_gm2.userid IS NOT NULL AND eu66_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu67_u.id FROM {user} eu67_u JOIN {user_enrolments} ej67_ue ON ej67_ue.userid = eu67_u.id JOIN {enrol} ej67_e ON (ej67_e.id = ej67_ue.enrolid AND ej67_e.courseid = :ej67_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu67_u.id LEFT JOIN {groups_members} gm67_gm2 ON (gm67_gm2.userid = eu67_u.id AND gm67_gm2.groupid = :gm67_402) WHERE 1 = 1 AND ej67_ue.status = :ej67_active AND ej67_e.status = :ej67_enabled AND ej67_ue.timestart < :ej67_now1 AND (ej67_ue.timeend = 0 OR ej67_ue.timeend > :ej67_now2) AND eu67_u.deleted = 0 AND eu67_u.id <> :eu67_guestid AND gm67_gm2.userid IS NOT NULL AND eu67_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu68_u.id FROM {user} eu68_u JOIN {user_enrolments} ej68_ue ON ej68_ue.userid = eu68_u.id JOIN {enrol} ej68_e ON (ej68_e.id = ej68_ue.enrolid AND ej68_e.courseid = :ej68_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu68_u.id LEFT JOIN {groups_members} gm68_gm2 ON (gm68_gm2.userid = eu68_u.id AND gm68_gm2.groupid = :gm68_408) WHERE 1 = 1 AND ej68_ue.status = :ej68_active AND ej68_e.status = :ej68_enabled AND ej68_ue.timestart < :ej68_now1 AND (ej68_ue.timeend = 0 OR ej68_ue.timeend > :ej68_now2) AND eu68_u.deleted = 0 AND eu68_u.id <> :eu68_guestid AND gm68_gm2.userid IS NOT NULL AND eu68_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu69_u.id FROM {user} eu69_u JOIN {user_enrolments} ej69_ue ON ej69_ue.userid = eu69_u.id JOIN {enrol} ej69_e ON (ej69_e.id = ej69_ue.enrolid AND ej69_e.courseid = :ej69_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu69_u.id LEFT JOIN {groups_members} gm69_gm2 ON (gm69_gm2.userid = eu69_u.id AND gm69_gm2.groupid = :gm69_414) WHERE 1 = 1 AND ej69_ue.status = :ej69_active AND ej69_e.status = :ej69_enabled AND ej69_ue.timestart < :ej69_now1 AND (ej69_ue.timeend = 0 OR ej69_ue.timeend > :ej69_now2) AND eu69_u.deleted = 0 AND eu69_u.id <> :eu69_guestid AND gm69_gm2.userid IS NOT NULL AND eu69_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu70_u.id FROM {user} eu70_u JOIN {user_enrolments} ej70_ue ON ej70_ue.userid = eu70_u.id JOIN {enrol} ej70_e ON (ej70_e.id = ej70_ue.enrolid AND ej70_e.courseid = :ej70_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu70_u.id LEFT JOIN {groups_members} gm70_gm2 ON (gm70_gm2.userid = eu70_u.id AND gm70_gm2.groupid = :gm70_420) WHERE 1 = 1 AND ej70_ue.status = :ej70_active AND ej70_e.status = :ej70_enabled AND ej70_ue.timestart < :ej70_now1 AND (ej70_ue.timeend = 0 OR ej70_ue.timeend > :ej70_now2) AND eu70_u.deleted = 0 AND eu70_u.id <> :eu70_guestid AND gm70_gm2.userid IS NOT NULL AND eu70_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu71_u.id FROM {user} eu71_u JOIN {user_enrolments} ej71_ue ON ej71_ue.userid = eu71_u.id JOIN {enrol} ej71_e ON (ej71_e.id = ej71_ue.enrolid AND ej71_e.courseid = :ej71_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu71_u.id LEFT JOIN {groups_members} gm71_gm2 ON (gm71_gm2.userid = eu71_u.id AND gm71_gm2.groupid = :gm71_426) WHERE 1 = 1 AND ej71_ue.status = :ej71_active AND ej71_e.status = :ej71_enabled AND ej71_ue.timestart < :ej71_now1 AND (ej71_ue.timeend = 0 OR ej71_ue.timeend > :ej71_now2) AND eu71_u.deleted = 0 AND eu71_u.id <> :eu71_guestid AND gm71_gm2.userid IS NOT NULL AND eu71_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu72_u.id FROM {user} eu72_u JOIN {user_enrolments} ej72_ue ON ej72_ue.userid = eu72_u.id JOIN {enrol} ej72_e ON (ej72_e.id = ej72_ue.enrolid AND ej72_e.courseid = :ej72_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu72_u.id LEFT JOIN {groups_members} gm72_gm2 ON (gm72_gm2.userid = eu72_u.id AND gm72_gm2.groupid = :gm72_432) WHERE 1 = 1 AND ej72_ue.status = :ej72_active AND ej72_e.status = :ej72_enabled AND ej72_ue.timestart < :ej72_now1 AND (ej72_ue.timeend = 0 OR ej72_ue.timeend > :ej72_now2) AND eu72_u.deleted = 0 AND eu72_u.id <> :eu72_guestid AND gm72_gm2.userid IS NOT NULL AND eu72_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu73_u.id FROM {user} eu73_u JOIN {user_enrolments} ej73_ue ON ej73_ue.userid = eu73_u.id JOIN {enrol} ej73_e ON (ej73_e.id = ej73_ue.enrolid AND ej73_e.courseid = :ej73_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu73_u.id LEFT JOIN {groups_members} gm73_gm2 ON (gm73_gm2.userid = eu73_u.id AND gm73_gm2.groupid = :gm73_438) WHERE 1 = 1 AND ej73_ue.status = :ej73_active AND ej73_e.status = :ej73_enabled AND ej73_ue.timestart < :ej73_now1 AND (ej73_ue.timeend = 0 OR ej73_ue.timeend > :ej73_now2) AND eu73_u.deleted = 0 AND eu73_u.id <> :eu73_guestid AND gm73_gm2.userid IS NOT NULL AND eu73_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu74_u.id FROM {user} eu74_u JOIN {user_enrolments} ej74_ue ON ej74_ue.userid = eu74_u.id JOIN {enrol} ej74_e ON (ej74_e.id = ej74_ue.enrolid AND ej74_e.courseid = :ej74_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu74_u.id LEFT JOIN {groups_members} gm74_gm2 ON (gm74_gm2.userid = eu74_u.id AND gm74_gm2.groupid = :gm74_444) WHERE 1 = 1 AND ej74_ue.status = :ej74_active AND ej74_e.status = :ej74_enabled AND ej74_ue.timestart < :ej74_now1 AND (ej74_ue.timeend = 0 OR ej74_ue.timeend > :ej74_now2) AND eu74_u.deleted = 0 AND eu74_u.id <> :eu74_guestid AND gm74_gm2.userid IS NOT NULL AND eu74_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu75_u.id FROM {user} eu75_u JOIN {user_enrolments} ej75_ue ON ej75_ue.userid = eu75_u.id JOIN {enrol} ej75_e ON (ej75_e.id = ej75_ue.enrolid AND ej75_e.courseid = :ej75_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu75_u.id LEFT JOIN {groups_members} gm75_gm2 ON (gm75_gm2.userid = eu75_u.id AND gm75_gm2.groupid = :gm75_450) WHERE 1 = 1 AND ej75_ue.status = :ej75_active AND ej75_e.status = :ej75_enabled AND ej75_ue.timestart < :ej75_now1 AND (ej75_ue.timeend = 0 OR ej75_ue.timeend > :ej75_now2) AND eu75_u.deleted = 0 AND eu75_u.id <> :eu75_guestid AND gm75_gm2.userid IS NOT NULL AND eu75_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu76_u.id FROM {user} eu76_u JOIN {user_enrolments} ej76_ue ON ej76_ue.userid = eu76_u.id JOIN {enrol} ej76_e ON (ej76_e.id = ej76_ue.enrolid AND ej76_e.courseid = :ej76_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu76_u.id LEFT JOIN {groups_members} gm76_gm2 ON (gm76_gm2.userid = eu76_u.id AND gm76_gm2.groupid = :gm76_456) WHERE 1 = 1 AND ej76_ue.status = :ej76_active AND ej76_e.status = :ej76_enabled AND ej76_ue.timestart < :ej76_now1 AND (ej76_ue.timeend = 0 OR ej76_ue.timeend > :ej76_now2) AND eu76_u.deleted = 0 AND eu76_u.id <> :eu76_guestid AND gm76_gm2.userid IS NOT NULL AND eu76_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu77_u.id FROM {user} eu77_u JOIN {user_enrolments} ej77_ue ON ej77_ue.userid = eu77_u.id JOIN {enrol} ej77_e ON (ej77_e.id = ej77_ue.enrolid AND ej77_e.courseid = :ej77_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu77_u.id LEFT JOIN {groups_members} gm77_gm2 ON (gm77_gm2.userid = eu77_u.id AND gm77_gm2.groupid = :gm77_462) WHERE 1 = 1 AND ej77_ue.status = :ej77_active AND ej77_e.status = :ej77_enabled AND ej77_ue.timestart < :ej77_now1 AND (ej77_ue.timeend = 0 OR ej77_ue.timeend > :ej77_now2) AND eu77_u.deleted = 0 AND eu77_u.id <> :eu77_guestid AND gm77_gm2.userid IS NOT NULL AND eu77_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu78_u.id FROM {user} eu78_u JOIN {user_enrolments} ej78_ue ON ej78_ue.userid = eu78_u.id JOIN {enrol} ej78_e ON (ej78_e.id = ej78_ue.enrolid AND ej78_e.courseid = :ej78_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu78_u.id LEFT JOIN {groups_members} gm78_gm2 ON (gm78_gm2.userid = eu78_u.id AND gm78_gm2.groupid = :gm78_468) WHERE 1 = 1 AND ej78_ue.status = :ej78_active AND ej78_e.status = :ej78_enabled AND ej78_ue.timestart < :ej78_now1 AND (ej78_ue.timeend = 0 OR ej78_ue.timeend > :ej78_now2) AND eu78_u.deleted = 0 AND eu78_u.id <> :eu78_guestid AND gm78_gm2.userid IS NOT NULL AND eu78_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu79_u.id FROM {user} eu79_u JOIN {user_enrolments} ej79_ue ON ej79_ue.userid = eu79_u.id JOIN {enrol} ej79_e ON (ej79_e.id = ej79_ue.enrolid AND ej79_e.courseid = :ej79_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu79_u.id LEFT JOIN {groups_members} gm79_gm2 ON (gm79_gm2.userid = eu79_u.id AND gm79_gm2.groupid = :gm79_474) WHERE 1 = 1 AND ej79_ue.status = :ej79_active AND ej79_e.status = :ej79_enabled AND ej79_ue.timestart < :ej79_now1 AND (ej79_ue.timeend = 0 OR ej79_ue.timeend > :ej79_now2) AND eu79_u.deleted = 0 AND eu79_u.id <> :eu79_guestid AND gm79_gm2.userid IS NOT NULL AND eu79_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu80_u.id FROM {user} eu80_u JOIN {user_enrolments} ej80_ue ON ej80_ue.userid = eu80_u.id JOIN {enrol} ej80_e ON (ej80_e.id = ej80_ue.enrolid AND ej80_e.courseid = :ej80_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu80_u.id LEFT JOIN {groups_members} gm80_gm2 ON (gm80_gm2.userid = eu80_u.id AND gm80_gm2.groupid = :gm80_480) WHERE 1 = 1 AND ej80_ue.status = :ej80_active AND ej80_e.status = :ej80_enabled AND ej80_ue.timestart < :ej80_now1 AND (ej80_ue.timeend = 0 OR ej80_ue.timeend > :ej80_now2) AND eu80_u.deleted = 0 AND eu80_u.id <> :eu80_guestid AND gm80_gm2.userid IS NOT NULL AND eu80_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu81_u.id FROM {user} eu81_u JOIN {user_enrolments} ej81_ue ON ej81_ue.userid = eu81_u.id JOIN {enrol} ej81_e ON (ej81_e.id = ej81_ue.enrolid AND ej81_e.courseid = :ej81_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu81_u.id LEFT JOIN {groups_members} gm81_gm2 ON (gm81_gm2.userid = eu81_u.id AND gm81_gm2.groupid = :gm81_486) WHERE 1 = 1 AND ej81_ue.status = :ej81_active AND ej81_e.status = :ej81_enabled AND ej81_ue.timestart < :ej81_now1 AND (ej81_ue.timeend = 0 OR ej81_ue.timeend > :ej81_now2) AND eu81_u.deleted = 0 AND eu81_u.id <> :eu81_guestid AND gm81_gm2.userid IS NOT NULL AND eu81_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu82_u.id FROM {user} eu82_u JOIN {user_enrolments} ej82_ue ON ej82_ue.userid = eu82_u.id JOIN {enrol} ej82_e ON (ej82_e.id = ej82_ue.enrolid AND ej82_e.courseid = :ej82_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu82_u.id LEFT JOIN {groups_members} gm82_gm2 ON (gm82_gm2.userid = eu82_u.id AND gm82_gm2.groupid = :gm82_492) WHERE 1 = 1 AND ej82_ue.status = :ej82_active AND ej82_e.status = :ej82_enabled AND ej82_ue.timestart < :ej82_now1 AND (ej82_ue.timeend = 0 OR ej82_ue.timeend > :ej82_now2) AND eu82_u.deleted = 0 AND eu82_u.id <> :eu82_guestid AND gm82_gm2.userid IS NOT NULL AND eu82_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu83_u.id FROM {user} eu83_u JOIN {user_enrolments} ej83_ue ON ej83_ue.userid = eu83_u.id JOIN {enrol} ej83_e ON (ej83_e.id = ej83_ue.enrolid AND ej83_e.courseid = :ej83_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu83_u.id LEFT JOIN {groups_members} gm83_gm2 ON (gm83_gm2.userid = eu83_u.id AND gm83_gm2.groupid = :gm83_498) WHERE 1 = 1 AND ej83_ue.status = :ej83_active AND ej83_e.status = :ej83_enabled AND ej83_ue.timestart < :ej83_now1 AND (ej83_ue.timeend = 0 OR ej83_ue.timeend > :ej83_now2) AND eu83_u.deleted = 0 AND eu83_u.id <> :eu83_guestid AND gm83_gm2.userid IS NOT NULL AND eu83_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu84_u.id FROM {user} eu84_u JOIN {user_enrolments} ej84_ue ON ej84_ue.userid = eu84_u.id JOIN {enrol} ej84_e ON (ej84_e.id = ej84_ue.enrolid AND ej84_e.courseid = :ej84_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu84_u.id LEFT JOIN {groups_members} gm84_gm2 ON (gm84_gm2.userid = eu84_u.id AND gm84_gm2.groupid = :gm84_504) WHERE 1 = 1 AND ej84_ue.status = :ej84_active AND ej84_e.status = :ej84_enabled AND ej84_ue.timestart < :ej84_now1 AND (ej84_ue.timeend = 0 OR ej84_ue.timeend > :ej84_now2) AND eu84_u.deleted = 0 AND eu84_u.id <> :eu84_guestid AND gm84_gm2.userid IS NOT NULL AND eu84_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu85_u.id FROM {user} eu85_u JOIN {user_enrolments} ej85_ue ON ej85_ue.userid = eu85_u.id JOIN {enrol} ej85_e ON (ej85_e.id = ej85_ue.enrolid AND ej85_e.courseid = :ej85_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu85_u.id LEFT JOIN {groups_members} gm85_gm2 ON (gm85_gm2.userid = eu85_u.id AND gm85_gm2.groupid = :gm85_510) WHERE 1 = 1 AND ej85_ue.status = :ej85_active AND ej85_e.status = :ej85_enabled AND ej85_ue.timestart < :ej85_now1 AND (ej85_ue.timeend = 0 OR ej85_ue.timeend > :ej85_now2) AND eu85_u.deleted = 0 AND eu85_u.id <> :eu85_guestid AND gm85_gm2.userid IS NOT NULL AND eu85_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu86_u.id FROM {user} eu86_u JOIN {user_enrolments} ej86_ue ON ej86_ue.userid = eu86_u.id JOIN {enrol} ej86_e ON (ej86_e.id = ej86_ue.enrolid AND ej86_e.courseid = :ej86_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu86_u.id LEFT JOIN {groups_members} gm86_gm2 ON (gm86_gm2.userid = eu86_u.id AND gm86_gm2.groupid = :gm86_516) WHERE 1 = 1 AND ej86_ue.status = :ej86_active AND ej86_e.status = :ej86_enabled AND ej86_ue.timestart < :ej86_now1 AND (ej86_ue.timeend = 0 OR ej86_ue.timeend > :ej86_now2) AND eu86_u.deleted = 0 AND eu86_u.id <> :eu86_guestid AND gm86_gm2.userid IS NOT NULL AND eu86_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu87_u.id FROM {user} eu87_u JOIN {user_enrolments} ej87_ue ON ej87_ue.userid = eu87_u.id JOIN {enrol} ej87_e ON (ej87_e.id = ej87_ue.enrolid AND ej87_e.courseid = :ej87_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu87_u.id LEFT JOIN {groups_members} gm87_gm2 ON (gm87_gm2.userid = eu87_u.id AND gm87_gm2.groupid = :gm87_522) WHERE 1 = 1 AND ej87_ue.status = :ej87_active AND ej87_e.status = :ej87_enabled AND ej87_ue.timestart < :ej87_now1 AND (ej87_ue.timeend = 0 OR ej87_ue.timeend > :ej87_now2) AND eu87_u.deleted = 0 AND eu87_u.id <> :eu87_guestid AND gm87_gm2.userid IS NOT NULL AND eu87_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu88_u.id FROM {user} eu88_u JOIN {user_enrolments} ej88_ue ON ej88_ue.userid = eu88_u.id JOIN {enrol} ej88_e ON (ej88_e.id = ej88_ue.enrolid AND ej88_e.courseid = :ej88_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu88_u.id LEFT JOIN {groups_members} gm88_gm2 ON (gm88_gm2.userid = eu88_u.id AND gm88_gm2.groupid = :gm88_528) WHERE 1 = 1 AND ej88_ue.status = :ej88_active AND ej88_e.status = :ej88_enabled AND ej88_ue.timestart < :ej88_now1 AND (ej88_ue.timeend = 0 OR ej88_ue.timeend > :ej88_now2) AND eu88_u.deleted = 0 AND eu88_u.id <> :eu88_guestid AND gm88_gm2.userid IS NOT NULL AND eu88_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu89_u.id FROM {user} eu89_u JOIN {user_enrolments} ej89_ue ON ej89_ue.userid = eu89_u.id JOIN {enrol} ej89_e ON (ej89_e.id = ej89_ue.enrolid AND ej89_e.courseid = :ej89_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu89_u.id LEFT JOIN {groups_members} gm89_gm2 ON (gm89_gm2.userid = eu89_u.id AND gm89_gm2.groupid = :gm89_534) WHERE 1 = 1 AND ej89_ue.status = :ej89_active AND ej89_e.status = :ej89_enabled AND ej89_ue.timestart < :ej89_now1 AND (ej89_ue.timeend = 0 OR ej89_ue.timeend > :ej89_now2) AND eu89_u.deleted = 0 AND eu89_u.id <> :eu89_guestid AND gm89_gm2.userid IS NOT NULL AND eu89_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu90_u.id FROM {user} eu90_u JOIN {user_enrolments} ej90_ue ON ej90_ue.userid = eu90_u.id JOIN {enrol} ej90_e ON (ej90_e.id = ej90_ue.enrolid AND ej90_e.courseid = :ej90_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu90_u.id LEFT JOIN {groups_members} gm90_gm2 ON (gm90_gm2.userid = eu90_u.id AND gm90_gm2.groupid = :gm90_540) WHERE 1 = 1 AND ej90_ue.status = :ej90_active AND ej90_e.status = :ej90_enabled AND ej90_ue.timestart < :ej90_now1 AND (ej90_ue.timeend = 0 OR ej90_ue.timeend > :ej90_now2) AND eu90_u.deleted = 0 AND eu90_u.id <> :eu90_guestid AND gm90_gm2.userid IS NOT NULL AND eu90_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu91_u.id FROM {user} eu91_u JOIN {user_enrolments} ej91_ue ON ej91_ue.userid = eu91_u.id JOIN {enrol} ej91_e ON (ej91_e.id = ej91_ue.enrolid AND ej91_e.courseid = :ej91_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu91_u.id LEFT JOIN {groups_members} gm91_gm2 ON (gm91_gm2.userid = eu91_u.id AND gm91_gm2.groupid = :gm91_546) WHERE 1 = 1 AND ej91_ue.status = :ej91_active AND ej91_e.status = :ej91_enabled AND ej91_ue.timestart < :ej91_now1 AND (ej91_ue.timeend = 0 OR ej91_ue.timeend > :ej91_now2) AND eu91_u.deleted = 0 AND eu91_u.id <> :eu91_guestid AND gm91_gm2.userid IS NOT NULL AND eu91_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu92_u.id FROM {user} eu92_u JOIN {user_enrolments} ej92_ue ON ej92_ue.userid = eu92_u.id JOIN {enrol} ej92_e ON (ej92_e.id = ej92_ue.enrolid AND ej92_e.courseid = :ej92_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu92_u.id LEFT JOIN {groups_members} gm92_gm2 ON (gm92_gm2.userid = eu92_u.id AND gm92_gm2.groupid = :gm92_552) WHERE 1 = 1 AND ej92_ue.status = :ej92_active AND ej92_e.status = :ej92_enabled AND ej92_ue.timestart < :ej92_now1 AND (ej92_ue.timeend = 0 OR ej92_ue.timeend > :ej92_now2) AND eu92_u.deleted = 0 AND eu92_u.id <> :eu92_guestid AND gm92_gm2.userid IS NOT NULL AND eu92_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu93_u.id FROM {user} eu93_u JOIN {user_enrolments} ej93_ue ON ej93_ue.userid = eu93_u.id JOIN {enrol} ej93_e ON (ej93_e.id = ej93_ue.enrolid AND ej93_e.courseid = :ej93_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu93_u.id LEFT JOIN {groups_members} gm93_gm2 ON (gm93_gm2.userid = eu93_u.id AND gm93_gm2.groupid = :gm93_558) WHERE 1 = 1 AND ej93_ue.status = :ej93_active AND ej93_e.status = :ej93_enabled AND ej93_ue.timestart < :ej93_now1 AND (ej93_ue.timeend = 0 OR ej93_ue.timeend > :ej93_now2) AND eu93_u.deleted = 0 AND eu93_u.id <> :eu93_guestid AND gm93_gm2.userid IS NOT NULL AND eu93_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu94_u.id FROM {user} eu94_u JOIN {user_enrolments} ej94_ue ON ej94_ue.userid = eu94_u.id JOIN {enrol} ej94_e ON (ej94_e.id = ej94_ue.enrolid AND ej94_e.courseid = :ej94_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu94_u.id LEFT JOIN {groups_members} gm94_gm2 ON (gm94_gm2.userid = eu94_u.id AND gm94_gm2.groupid = :gm94_564) WHERE 1 = 1 AND ej94_ue.status = :ej94_active AND ej94_e.status = :ej94_enabled AND ej94_ue.timestart < :ej94_now1 AND (ej94_ue.timeend = 0 OR ej94_ue.timeend > :ej94_now2) AND eu94_u.deleted = 0 AND eu94_u.id <> :eu94_guestid AND gm94_gm2.userid IS NOT NULL AND eu94_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu95_u.id FROM {user} eu95_u JOIN {user_enrolments} ej95_ue ON ej95_ue.userid = eu95_u.id JOIN {enrol} ej95_e ON (ej95_e.id = ej95_ue.enrolid AND ej95_e.courseid = :ej95_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu95_u.id LEFT JOIN {groups_members} gm95_gm2 ON (gm95_gm2.userid = eu95_u.id AND gm95_gm2.groupid = :gm95_570) WHERE 1 = 1 AND ej95_ue.status = :ej95_active AND ej95_e.status = :ej95_enabled AND ej95_ue.timestart < :ej95_now1 AND (ej95_ue.timeend = 0 OR ej95_ue.timeend > :ej95_now2) AND eu95_u.deleted = 0 AND eu95_u.id <> :eu95_guestid AND gm95_gm2.userid IS NOT NULL AND eu95_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu96_u.id FROM {user} eu96_u JOIN {user_enrolments} ej96_ue ON ej96_ue.userid = eu96_u.id JOIN {enrol} ej96_e ON (ej96_e.id = ej96_ue.enrolid AND ej96_e.courseid = :ej96_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu96_u.id LEFT JOIN {groups_members} gm96_gm2 ON (gm96_gm2.userid = eu96_u.id AND gm96_gm2.groupid = :gm96_576) WHERE 1 = 1 AND ej96_ue.status = :ej96_active AND ej96_e.status = :ej96_enabled AND ej96_ue.timestart < :ej96_now1 AND (ej96_ue.timeend = 0 OR ej96_ue.timeend > :ej96_now2) AND eu96_u.deleted = 0 AND eu96_u.id <> :eu96_guestid AND gm96_gm2.userid IS NOT NULL AND eu96_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu97_u.id FROM {user} eu97_u JOIN {user_enrolments} ej97_ue ON ej97_ue.userid = eu97_u.id JOIN {enrol} ej97_e ON (ej97_e.id = ej97_ue.enrolid AND ej97_e.courseid = :ej97_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu97_u.id LEFT JOIN {groups_members} gm97_gm2 ON (gm97_gm2.userid = eu97_u.id AND gm97_gm2.groupid = :gm97_582) WHERE 1 = 1 AND ej97_ue.status = :ej97_active AND ej97_e.status = :ej97_enabled AND ej97_ue.timestart < :ej97_now1 AND (ej97_ue.timeend = 0 OR ej97_ue.timeend > :ej97_now2) AND eu97_u.deleted = 0 AND eu97_u.id <> :eu97_guestid AND gm97_gm2.userid IS NOT NULL AND eu97_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu98_u.id FROM {user} eu98_u JOIN {user_enrolments} ej98_ue ON ej98_ue.userid = eu98_u.id JOIN {enrol} ej98_e ON (ej98_e.id = ej98_ue.enrolid AND ej98_e.courseid = :ej98_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu98_u.id LEFT JOIN {groups_members} gm98_gm2 ON (gm98_gm2.userid = eu98_u.id AND gm98_gm2.groupid = :gm98_588) WHERE 1 = 1 AND ej98_ue.status = :ej98_active AND ej98_e.status = :ej98_enabled AND ej98_ue.timestart < :ej98_now1 AND (ej98_ue.timeend = 0 OR ej98_ue.timeend > :ej98_now2) AND eu98_u.deleted = 0 AND eu98_u.id <> :eu98_guestid AND gm98_gm2.userid IS NOT NULL AND eu98_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu99_u.id FROM {user} eu99_u JOIN {user_enrolments} ej99_ue ON ej99_ue.userid = eu99_u.id JOIN {enrol} ej99_e ON (ej99_e.id = ej99_ue.enrolid AND ej99_e.courseid = :ej99_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu99_u.id LEFT JOIN {groups_members} gm99_gm2 ON (gm99_gm2.userid = eu99_u.id AND gm99_gm2.groupid = :gm99_594) WHERE 1 = 1 AND ej99_ue.status = :ej99_active AND ej99_e.status = :ej99_enabled AND ej99_ue.timestart < :ej99_now1 AND (ej99_ue.timeend = 0 OR ej99_ue.timeend > :ej99_now2) AND eu99_u.deleted = 0 AND eu99_u.id <> :eu99_guestid AND gm99_gm2.userid IS NOT NULL AND eu99_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu100_u.id FROM {user} eu100_u JOIN {user_enrolments} ej100_ue ON ej100_ue.userid = eu100_u.id JOIN {enrol} ej100_e ON (ej100_e.id = ej100_ue.enrolid AND ej100_e.courseid = :ej100_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu100_u.id LEFT JOIN {groups_members} gm100_gm2 ON (gm100_gm2.userid = eu100_u.id AND gm100_gm2.groupid = :gm100_600) WHERE 1 = 1 AND ej100_ue.status = :ej100_active AND ej100_e.status = :ej100_enabled AND ej100_ue.timestart < :ej100_now1 AND (ej100_ue.timeend = 0 OR ej100_ue.timeend > :ej100_now2) AND eu100_u.deleted = 0 AND eu100_u.id <> :eu100_guestid AND gm100_gm2.userid IS NOT NULL AND eu100_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu101_u.id FROM {user} eu101_u JOIN {user_enrolments} ej101_ue ON ej101_ue.userid = eu101_u.id JOIN {enrol} ej101_e ON (ej101_e.id = ej101_ue.enrolid AND ej101_e.courseid = :ej101_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu101_u.id LEFT JOIN {groups_members} gm101_gm2 ON (gm101_gm2.userid = eu101_u.id AND gm101_gm2.groupid = :gm101_606) WHERE 1 = 1 AND ej101_ue.status = :ej101_active AND ej101_e.status = :ej101_enabled AND ej101_ue.timestart < :ej101_now1 AND (ej101_ue.timeend = 0 OR ej101_ue.timeend > :ej101_now2) AND eu101_u.deleted = 0 AND eu101_u.id <> :eu101_guestid AND gm101_gm2.userid IS NOT NULL AND eu101_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu102_u.id FROM {user} eu102_u JOIN {user_enrolments} ej102_ue ON ej102_ue.userid = eu102_u.id JOIN {enrol} ej102_e ON (ej102_e.id = ej102_ue.enrolid AND ej102_e.courseid = :ej102_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu102_u.id LEFT JOIN {groups_members} gm102_gm2 ON (gm102_gm2.userid = eu102_u.id AND gm102_gm2.groupid = :gm102_612) WHERE 1 = 1 AND ej102_ue.status = :ej102_active AND ej102_e.status = :ej102_enabled AND ej102_ue.timestart < :ej102_now1 AND (ej102_ue.timeend = 0 OR ej102_ue.timeend > :ej102_now2) AND eu102_u.deleted = 0 AND eu102_u.id <> :eu102_guestid AND gm102_gm2.userid IS NOT NULL AND eu102_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu103_u.id FROM {user} eu103_u JOIN {user_enrolments} ej103_ue ON ej103_ue.userid = eu103_u.id JOIN {enrol} ej103_e ON (ej103_e.id = ej103_ue.enrolid AND ej103_e.courseid = :ej103_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu103_u.id LEFT JOIN {groups_members} gm103_gm2 ON (gm103_gm2.userid = eu103_u.id AND gm103_gm2.groupid = :gm103_618) WHERE 1 = 1 AND ej103_ue.status = :ej103_active AND ej103_e.status = :ej103_enabled AND ej103_ue.timestart < :ej103_now1 AND (ej103_ue.timeend = 0 OR ej103_ue.timeend > :ej103_now2) AND eu103_u.deleted = 0 AND eu103_u.id <> :eu103_guestid AND gm103_gm2.userid IS NOT NULL AND eu103_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu104_u.id FROM {user} eu104_u JOIN {user_enrolments} ej104_ue ON ej104_ue.userid = eu104_u.id JOIN {enrol} ej104_e ON (ej104_e.id = ej104_ue.enrolid AND ej104_e.courseid = :ej104_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu104_u.id LEFT JOIN {groups_members} gm104_gm2 ON (gm104_gm2.userid = eu104_u.id AND gm104_gm2.groupid = :gm104_624) WHERE 1 = 1 AND ej104_ue.status = :ej104_active AND ej104_e.status = :ej104_enabled AND ej104_ue.timestart < :ej104_now1 AND (ej104_ue.timeend = 0 OR ej104_ue.timeend > :ej104_now2) AND eu104_u.deleted = 0 AND eu104_u.id <> :eu104_guestid AND gm104_gm2.userid IS NOT NULL AND eu104_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu105_u.id FROM {user} eu105_u JOIN {user_enrolments} ej105_ue ON ej105_ue.userid = eu105_u.id JOIN {enrol} ej105_e ON (ej105_e.id = ej105_ue.enrolid AND ej105_e.courseid = :ej105_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu105_u.id LEFT JOIN {groups_members} gm105_gm2 ON (gm105_gm2.userid = eu105_u.id AND gm105_gm2.groupid = :gm105_630) WHERE 1 = 1 AND ej105_ue.status = :ej105_active AND ej105_e.status = :ej105_enabled AND ej105_ue.timestart < :ej105_now1 AND (ej105_ue.timeend = 0 OR ej105_ue.timeend > :ej105_now2) AND eu105_u.deleted = 0 AND eu105_u.id <> :eu105_guestid AND gm105_gm2.userid IS NOT NULL AND eu105_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu106_u.id FROM {user} eu106_u JOIN {user_enrolments} ej106_ue ON ej106_ue.userid = eu106_u.id JOIN {enrol} ej106_e ON (ej106_e.id = ej106_ue.enrolid AND ej106_e.courseid = :ej106_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu106_u.id LEFT JOIN {groups_members} gm106_gm2 ON (gm106_gm2.userid = eu106_u.id AND gm106_gm2.groupid = :gm106_636) WHERE 1 = 1 AND ej106_ue.status = :ej106_active AND ej106_e.status = :ej106_enabled AND ej106_ue.timestart < :ej106_now1 AND (ej106_ue.timeend = 0 OR ej106_ue.timeend > :ej106_now2) AND eu106_u.deleted = 0 AND eu106_u.id <> :eu106_guestid AND gm106_gm2.userid IS NOT NULL AND eu106_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu107_u.id FROM {user} eu107_u JOIN {user_enrolments} ej107_ue ON ej107_ue.userid = eu107_u.id JOIN {enrol} ej107_e ON (ej107_e.id = ej107_ue.enrolid AND ej107_e.courseid = :ej107_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu107_u.id LEFT JOIN {groups_members} gm107_gm2 ON (gm107_gm2.userid = eu107_u.id AND gm107_gm2.groupid = :gm107_642) WHERE 1 = 1 AND ej107_ue.status = :ej107_active AND ej107_e.status = :ej107_enabled AND ej107_ue.timestart < :ej107_now1 AND (ej107_ue.timeend = 0 OR ej107_ue.timeend > :ej107_now2) AND eu107_u.deleted = 0 AND eu107_u.id <> :eu107_guestid AND gm107_gm2.userid IS NOT NULL AND eu107_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu108_u.id FROM {user} eu108_u JOIN {user_enrolments} ej108_ue ON ej108_ue.userid = eu108_u.id JOIN {enrol} ej108_e ON (ej108_e.id = ej108_ue.enrolid AND ej108_e.courseid = :ej108_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu108_u.id LEFT JOIN {groups_members} gm108_gm2 ON (gm108_gm2.userid = eu108_u.id AND gm108_gm2.groupid = :gm108_648) WHERE 1 = 1 AND ej108_ue.status = :ej108_active AND ej108_e.status = :ej108_enabled AND ej108_ue.timestart < :ej108_now1 AND (ej108_ue.timeend = 0 OR ej108_ue.timeend > :ej108_now2) AND eu108_u.deleted = 0 AND eu108_u.id <> :eu108_guestid AND gm108_gm2.userid IS NOT NULL AND eu108_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu109_u.id FROM {user} eu109_u JOIN {user_enrolments} ej109_ue ON ej109_ue.userid = eu109_u.id JOIN {enrol} ej109_e ON (ej109_e.id = ej109_ue.enrolid AND ej109_e.courseid = :ej109_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu109_u.id LEFT JOIN {groups_members} gm109_gm2 ON (gm109_gm2.userid = eu109_u.id AND gm109_gm2.groupid = :gm109_654) WHERE 1 = 1 AND ej109_ue.status = :ej109_active AND ej109_e.status = :ej109_enabled AND ej109_ue.timestart < :ej109_now1 AND (ej109_ue.timeend = 0 OR ej109_ue.timeend > :ej109_now2) AND eu109_u.deleted = 0 AND eu109_u.id <> :eu109_guestid AND gm109_gm2.userid IS NOT NULL AND eu109_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu110_u.id FROM {user} eu110_u JOIN {user_enrolments} ej110_ue ON ej110_ue.userid = eu110_u.id JOIN {enrol} ej110_e ON (ej110_e.id = ej110_ue.enrolid AND ej110_e.courseid = :ej110_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu110_u.id LEFT JOIN {groups_members} gm110_gm2 ON (gm110_gm2.userid = eu110_u.id AND gm110_gm2.groupid = :gm110_660) WHERE 1 = 1 AND ej110_ue.status = :ej110_active AND ej110_e.status = :ej110_enabled AND ej110_ue.timestart < :ej110_now1 AND (ej110_ue.timeend = 0 OR ej110_ue.timeend > :ej110_now2) AND eu110_u.deleted = 0 AND eu110_u.id <> :eu110_guestid AND gm110_gm2.userid IS NOT NULL AND eu110_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu111_u.id FROM {user} eu111_u JOIN {user_enrolments} ej111_ue ON ej111_ue.userid = eu111_u.id JOIN {enrol} ej111_e ON (ej111_e.id = ej111_ue.enrolid AND ej111_e.courseid = :ej111_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu111_u.id LEFT JOIN {groups_members} gm111_gm2 ON (gm111_gm2.userid = eu111_u.id AND gm111_gm2.groupid = :gm111_666) WHERE 1 = 1 AND ej111_ue.status = :ej111_active AND ej111_e.status = :ej111_enabled AND ej111_ue.timestart < :ej111_now1 AND (ej111_ue.timeend = 0 OR ej111_ue.timeend > :ej111_now2) AND eu111_u.deleted = 0 AND eu111_u.id <> :eu111_guestid AND gm111_gm2.userid IS NOT NULL AND eu111_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu112_u.id FROM {user} eu112_u JOIN {user_enrolments} ej112_ue ON ej112_ue.userid = eu112_u.id JOIN {enrol} ej112_e ON (ej112_e.id = ej112_ue.enrolid AND ej112_e.courseid = :ej112_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu112_u.id LEFT JOIN {groups_members} gm112_gm2 ON (gm112_gm2.userid = eu112_u.id AND gm112_gm2.groupid = :gm112_672) WHERE 1 = 1 AND ej112_ue.status = :ej112_active AND ej112_e.status = :ej112_enabled AND ej112_ue.timestart < :ej112_now1 AND (ej112_ue.timeend = 0 OR ej112_ue.timeend > :ej112_now2) AND eu112_u.deleted = 0 AND eu112_u.id <> :eu112_guestid AND gm112_gm2.userid IS NOT NULL AND eu112_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu113_u.id FROM {user} eu113_u JOIN {user_enrolments} ej113_ue ON ej113_ue.userid = eu113_u.id JOIN {enrol} ej113_e ON (ej113_e.id = ej113_ue.enrolid AND ej113_e.courseid = :ej113_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu113_u.id LEFT JOIN {groups_members} gm113_gm2 ON (gm113_gm2.userid = eu113_u.id AND gm113_gm2.groupid = :gm113_678) WHERE 1 = 1 AND ej113_ue.status = :ej113_active AND ej113_e.status = :ej113_enabled AND ej113_ue.timestart < :ej113_now1 AND (ej113_ue.timeend = 0 OR ej113_ue.timeend > :ej113_now2) AND eu113_u.deleted = 0 AND eu113_u.id <> :eu113_guestid AND gm113_gm2.userid IS NOT NULL AND eu113_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu114_u.id FROM {user} eu114_u JOIN {user_enrolments} ej114_ue ON ej114_ue.userid = eu114_u.id JOIN {enrol} ej114_e ON (ej114_e.id = ej114_ue.enrolid AND ej114_e.courseid = :ej114_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu114_u.id LEFT JOIN {groups_members} gm114_gm2 ON (gm114_gm2.userid = eu114_u.id AND gm114_gm2.groupid = :gm114_684) WHERE 1 = 1 AND ej114_ue.status = :ej114_active AND ej114_e.status = :ej114_enabled AND ej114_ue.timestart < :ej114_now1 AND (ej114_ue.timeend = 0 OR ej114_ue.timeend > :ej114_now2) AND eu114_u.deleted = 0 AND eu114_u.id <> :eu114_guestid AND gm114_gm2.userid IS NOT NULL AND eu114_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu115_u.id FROM {user} eu115_u JOIN {user_enrolments} ej115_ue ON ej115_ue.userid = eu115_u.id JOIN {enrol} ej115_e ON (ej115_e.id = ej115_ue.enrolid AND ej115_e.courseid = :ej115_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu115_u.id LEFT JOIN {groups_members} gm115_gm2 ON (gm115_gm2.userid = eu115_u.id AND gm115_gm2.groupid = :gm115_690) WHERE 1 = 1 AND ej115_ue.status = :ej115_active AND ej115_e.status = :ej115_enabled AND ej115_ue.timestart < :ej115_now1 AND (ej115_ue.timeend = 0 OR ej115_ue.timeend > :ej115_now2) AND eu115_u.deleted = 0 AND eu115_u.id <> :eu115_guestid AND gm115_gm2.userid IS NOT NULL AND eu115_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu116_u.id FROM {user} eu116_u JOIN {user_enrolments} ej116_ue ON ej116_ue.userid = eu116_u.id JOIN {enrol} ej116_e ON (ej116_e.id = ej116_ue.enrolid AND ej116_e.courseid = :ej116_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu116_u.id LEFT JOIN {groups_members} gm116_gm2 ON (gm116_gm2.userid = eu116_u.id AND gm116_gm2.groupid = :gm116_696) WHERE 1 = 1 AND ej116_ue.status = :ej116_active AND ej116_e.status = :ej116_enabled AND ej116_ue.timestart < :ej116_now1 AND (ej116_ue.timeend = 0 OR ej116_ue.timeend > :ej116_now2) AND eu116_u.deleted = 0 AND eu116_u.id <> :eu116_guestid AND gm116_gm2.userid IS NOT NULL AND eu116_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu117_u.id FROM {user} eu117_u JOIN {user_enrolments} ej117_ue ON ej117_ue.userid = eu117_u.id JOIN {enrol} ej117_e ON (ej117_e.id = ej117_ue.enrolid AND ej117_e.courseid = :ej117_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu117_u.id LEFT JOIN {groups_members} gm117_gm2 ON (gm117_gm2.userid = eu117_u.id AND gm117_gm2.groupid = :gm117_702) WHERE 1 = 1 AND ej117_ue.status = :ej117_active AND ej117_e.status = :ej117_enabled AND ej117_ue.timestart < :ej117_now1 AND (ej117_ue.timeend = 0 OR ej117_ue.timeend > :ej117_now2) AND eu117_u.deleted = 0 AND eu117_u.id <> :eu117_guestid AND gm117_gm2.userid IS NOT NULL AND eu117_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu118_u.id FROM {user} eu118_u JOIN {user_enrolments} ej118_ue ON ej118_ue.userid = eu118_u.id JOIN {enrol} ej118_e ON (ej118_e.id = ej118_ue.enrolid AND ej118_e.courseid = :ej118_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu118_u.id LEFT JOIN {groups_members} gm118_gm2 ON (gm118_gm2.userid = eu118_u.id AND gm118_gm2.groupid = :gm118_708) WHERE 1 = 1 AND ej118_ue.status = :ej118_active AND ej118_e.status = :ej118_enabled AND ej118_ue.timestart < :ej118_now1 AND (ej118_ue.timeend = 0 OR ej118_ue.timeend > :ej118_now2) AND eu118_u.deleted = 0 AND eu118_u.id <> :eu118_guestid AND gm118_gm2.userid IS NOT NULL AND eu118_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu119_u.id FROM {user} eu119_u JOIN {user_enrolments} ej119_ue ON ej119_ue.userid = eu119_u.id JOIN {enrol} ej119_e ON (ej119_e.id = ej119_ue.enrolid AND ej119_e.courseid = :ej119_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu119_u.id LEFT JOIN {groups_members} gm119_gm2 ON (gm119_gm2.userid = eu119_u.id AND gm119_gm2.groupid = :gm119_714) WHERE 1 = 1 AND ej119_ue.status = :ej119_active AND ej119_e.status = :ej119_enabled AND ej119_ue.timestart < :ej119_now1 AND (ej119_ue.timeend = 0 OR ej119_ue.timeend > :ej119_now2) AND eu119_u.deleted = 0 AND eu119_u.id <> :eu119_guestid AND gm119_gm2.userid IS NOT NULL AND eu119_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu120_u.id FROM {user} eu120_u JOIN {user_enrolments} ej120_ue ON ej120_ue.userid = eu120_u.id JOIN {enrol} ej120_e ON (ej120_e.id = ej120_ue.enrolid AND ej120_e.courseid = :ej120_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu120_u.id LEFT JOIN {groups_members} gm120_gm2 ON (gm120_gm2.userid = eu120_u.id AND gm120_gm2.groupid = :gm120_720) WHERE 1 = 1 AND ej120_ue.status = :ej120_active AND ej120_e.status = :ej120_enabled AND ej120_ue.timestart < :ej120_now1 AND (ej120_ue.timeend = 0 OR ej120_ue.timeend > :ej120_now2) AND eu120_u.deleted = 0 AND eu120_u.id <> :eu120_guestid AND gm120_gm2.userid IS NOT NULL AND eu120_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu121_u.id FROM {user} eu121_u JOIN {user_enrolments} ej121_ue ON ej121_ue.userid = eu121_u.id JOIN {enrol} ej121_e ON (ej121_e.id = ej121_ue.enrolid AND ej121_e.courseid = :ej121_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu121_u.id LEFT JOIN {groups_members} gm121_gm2 ON (gm121_gm2.userid = eu121_u.id AND gm121_gm2.groupid = :gm121_726) WHERE 1 = 1 AND ej121_ue.status = :ej121_active AND ej121_e.status = :ej121_enabled AND ej121_ue.timestart < :ej121_now1 AND (ej121_ue.timeend = 0 OR ej121_ue.timeend > :ej121_now2) AND eu121_u.deleted = 0 AND eu121_u.id <> :eu121_guestid AND gm121_gm2.userid IS NOT NULL AND eu121_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu122_u.id FROM {user} eu122_u JOIN {user_enrolments} ej122_ue ON ej122_ue.userid = eu122_u.id JOIN {enrol} ej122_e ON (ej122_e.id = ej122_ue.enrolid AND ej122_e.courseid = :ej122_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu122_u.id LEFT JOIN {groups_members} gm122_gm2 ON (gm122_gm2.userid = eu122_u.id AND gm122_gm2.groupid = :gm122_732) WHERE 1 = 1 AND ej122_ue.status = :ej122_active AND ej122_e.status = :ej122_enabled AND ej122_ue.timestart < :ej122_now1 AND (ej122_ue.timeend = 0 OR ej122_ue.timeend > :ej122_now2) AND eu122_u.deleted = 0 AND eu122_u.id <> :eu122_guestid AND gm122_gm2.userid IS NOT NULL AND eu122_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu123_u.id FROM {user} eu123_u JOIN {user_enrolments} ej123_ue ON ej123_ue.userid = eu123_u.id JOIN {enrol} ej123_e ON (ej123_e.id = ej123_ue.enrolid AND ej123_e.courseid = :ej123_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu123_u.id LEFT JOIN {groups_members} gm123_gm2 ON (gm123_gm2.userid = eu123_u.id AND gm123_gm2.groupid = :gm123_738) WHERE 1 = 1 AND ej123_ue.status = :ej123_active AND ej123_e.status = :ej123_enabled AND ej123_ue.timestart < :ej123_now1 AND (ej123_ue.timeend = 0 OR ej123_ue.timeend > :ej123_now2) AND eu123_u.deleted = 0 AND eu123_u.id <> :eu123_guestid AND gm123_gm2.userid IS NOT NULL AND eu123_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu124_u.id FROM {user} eu124_u JOIN {user_enrolments} ej124_ue ON ej124_ue.userid = eu124_u.id JOIN {enrol} ej124_e ON (ej124_e.id = ej124_ue.enrolid AND ej124_e.courseid = :ej124_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu124_u.id LEFT JOIN {groups_members} gm124_gm2 ON (gm124_gm2.userid = eu124_u.id AND gm124_gm2.groupid = :gm124_744) WHERE 1 = 1 AND ej124_ue.status = :ej124_active AND ej124_e.status = :ej124_enabled AND ej124_ue.timestart < :ej124_now1 AND (ej124_ue.timeend = 0 OR ej124_ue.timeend > :ej124_now2) AND eu124_u.deleted = 0 AND eu124_u.id <> :eu124_guestid AND gm124_gm2.userid IS NOT NULL AND eu124_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu125_u.id FROM {user} eu125_u JOIN {user_enrolments} ej125_ue ON ej125_ue.userid = eu125_u.id JOIN {enrol} ej125_e ON (ej125_e.id = ej125_ue.enrolid AND ej125_e.courseid = :ej125_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu125_u.id LEFT JOIN {groups_members} gm125_gm2 ON (gm125_gm2.userid = eu125_u.id AND gm125_gm2.groupid = :gm125_750) WHERE 1 = 1 AND ej125_ue.status = :ej125_active AND ej125_e.status = :ej125_enabled AND ej125_ue.timestart < :ej125_now1 AND (ej125_ue.timeend = 0 OR ej125_ue.timeend > :ej125_now2) AND eu125_u.deleted = 0 AND eu125_u.id <> :eu125_guestid AND gm125_gm2.userid IS NOT NULL AND eu125_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu126_u.id FROM {user} eu126_u JOIN {user_enrolments} ej126_ue ON ej126_ue.userid = eu126_u.id JOIN {enrol} ej126_e ON (ej126_e.id = ej126_ue.enrolid AND ej126_e.courseid = :ej126_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu126_u.id LEFT JOIN {groups_members} gm126_gm2 ON (gm126_gm2.userid = eu126_u.id AND gm126_gm2.groupid = :gm126_756) WHERE 1 = 1 AND ej126_ue.status = :ej126_active AND ej126_e.status = :ej126_enabled AND ej126_ue.timestart < :ej126_now1 AND (ej126_ue.timeend = 0 OR ej126_ue.timeend > :ej126_now2) AND eu126_u.deleted = 0 AND eu126_u.id <> :eu126_guestid AND gm126_gm2.userid IS NOT NULL AND eu126_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu127_u.id FROM {user} eu127_u JOIN {user_enrolments} ej127_ue ON ej127_ue.userid = eu127_u.id JOIN {enrol} ej127_e ON (ej127_e.id = ej127_ue.enrolid AND ej127_e.courseid = :ej127_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu127_u.id LEFT JOIN {groups_members} gm127_gm2 ON (gm127_gm2.userid = eu127_u.id AND gm127_gm2.groupid = :gm127_762) WHERE 1 = 1 AND ej127_ue.status = :ej127_active AND ej127_e.status = :ej127_enabled AND ej127_ue.timestart < :ej127_now1 AND (ej127_ue.timeend = 0 OR ej127_ue.timeend > :ej127_now2) AND eu127_u.deleted = 0 AND eu127_u.id <> :eu127_guestid AND gm127_gm2.userid IS NOT NULL AND eu127_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu128_u.id FROM {user} eu128_u JOIN {user_enrolments} ej128_ue ON ej128_ue.userid = eu128_u.id JOIN {enrol} ej128_e ON (ej128_e.id = ej128_ue.enrolid AND ej128_e.courseid = :ej128_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu128_u.id LEFT JOIN {groups_members} gm128_gm2 ON (gm128_gm2.userid = eu128_u.id AND gm128_gm2.groupid = :gm128_768) WHERE 1 = 1 AND ej128_ue.status = :ej128_active AND ej128_e.status = :ej128_enabled AND ej128_ue.timestart < :ej128_now1 AND (ej128_ue.timeend = 0 OR ej128_ue.timeend > :ej128_now2) AND eu128_u.deleted = 0 AND eu128_u.id <> :eu128_guestid AND gm128_gm2.userid IS NOT NULL AND eu128_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu129_u.id FROM {user} eu129_u JOIN {user_enrolments} ej129_ue ON ej129_ue.userid = eu129_u.id JOIN {enrol} ej129_e ON (ej129_e.id = ej129_ue.enrolid AND ej129_e.courseid = :ej129_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu129_u.id LEFT JOIN {groups_members} gm129_gm2 ON (gm129_gm2.userid = eu129_u.id AND gm129_gm2.groupid = :gm129_774) WHERE 1 = 1 AND ej129_ue.status = :ej129_active AND ej129_e.status = :ej129_enabled AND ej129_ue.timestart < :ej129_now1 AND (ej129_ue.timeend = 0 OR ej129_ue.timeend > :ej129_now2) AND eu129_u.deleted = 0 AND eu129_u.id <> :eu129_guestid AND gm129_gm2.userid IS NOT NULL AND eu129_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu130_u.id FROM {user} eu130_u JOIN {user_enrolments} ej130_ue ON ej130_ue.userid = eu130_u.id JOIN {enrol} ej130_e ON (ej130_e.id = ej130_ue.enrolid AND ej130_e.courseid = :ej130_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu130_u.id LEFT JOIN {groups_members} gm130_gm2 ON (gm130_gm2.userid = eu130_u.id AND gm130_gm2.groupid = :gm130_780) WHERE 1 = 1 AND ej130_ue.status = :ej130_active AND ej130_e.status = :ej130_enabled AND ej130_ue.timestart < :ej130_now1 AND (ej130_ue.timeend = 0 OR ej130_ue.timeend > :ej130_now2) AND eu130_u.deleted = 0 AND eu130_u.id <> :eu130_guestid AND gm130_gm2.userid IS NOT NULL AND eu130_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu131_u.id FROM {user} eu131_u JOIN {user_enrolments} ej131_ue ON ej131_ue.userid = eu131_u.id JOIN {enrol} ej131_e ON (ej131_e.id = ej131_ue.enrolid AND ej131_e.courseid = :ej131_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu131_u.id LEFT JOIN {groups_members} gm131_gm2 ON (gm131_gm2.userid = eu131_u.id AND gm131_gm2.groupid = :gm131_786) WHERE 1 = 1 AND ej131_ue.status = :ej131_active AND ej131_e.status = :ej131_enabled AND ej131_ue.timestart < :ej131_now1 AND (ej131_ue.timeend = 0 OR ej131_ue.timeend > :ej131_now2) AND eu131_u.deleted = 0 AND eu131_u.id <> :eu131_guestid AND gm131_gm2.userid IS NOT NULL AND eu131_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu132_u.id FROM {user} eu132_u JOIN {user_enrolments} ej132_ue ON ej132_ue.userid = eu132_u.id JOIN {enrol} ej132_e ON (ej132_e.id = ej132_ue.enrolid AND ej132_e.courseid = :ej132_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu132_u.id LEFT JOIN {groups_members} gm132_gm2 ON (gm132_gm2.userid = eu132_u.id AND gm132_gm2.groupid = :gm132_792) WHERE 1 = 1 AND ej132_ue.status = :ej132_active AND ej132_e.status = :ej132_enabled AND ej132_ue.timestart < :ej132_now1 AND (ej132_ue.timeend = 0 OR ej132_ue.timeend > :ej132_now2) AND eu132_u.deleted = 0 AND eu132_u.id <> :eu132_guestid AND gm132_gm2.userid IS NOT NULL AND eu132_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu133_u.id FROM {user} eu133_u JOIN {user_enrolments} ej133_ue ON ej133_ue.userid = eu133_u.id JOIN {enrol} ej133_e ON (ej133_e.id = ej133_ue.enrolid AND ej133_e.courseid = :ej133_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu133_u.id LEFT JOIN {groups_members} gm133_gm2 ON (gm133_gm2.userid = eu133_u.id AND gm133_gm2.groupid = :gm133_798) WHERE 1 = 1 AND ej133_ue.status = :ej133_active AND ej133_e.status = :ej133_enabled AND ej133_ue.timestart < :ej133_now1 AND (ej133_ue.timeend = 0 OR ej133_ue.timeend > :ej133_now2) AND eu133_u.deleted = 0 AND eu133_u.id <> :eu133_guestid AND gm133_gm2.userid IS NOT NULL AND eu133_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu134_u.id FROM {user} eu134_u JOIN {user_enrolments} ej134_ue ON ej134_ue.userid = eu134_u.id JOIN {enrol} ej134_e ON (ej134_e.id = ej134_ue.enrolid AND ej134_e.courseid = :ej134_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu134_u.id LEFT JOIN {groups_members} gm134_gm2 ON (gm134_gm2.userid = eu134_u.id AND gm134_gm2.groupid = :gm134_804) WHERE 1 = 1 AND ej134_ue.status = :ej134_active AND ej134_e.status = :ej134_enabled AND ej134_ue.timestart < :ej134_now1 AND (ej134_ue.timeend = 0 OR ej134_ue.timeend > :ej134_now2) AND eu134_u.deleted = 0 AND eu134_u.id <> :eu134_guestid AND gm134_gm2.userid IS NOT NULL AND eu134_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu135_u.id FROM {user} eu135_u JOIN {user_enrolments} ej135_ue ON ej135_ue.userid = eu135_u.id JOIN {enrol} ej135_e ON (ej135_e.id = ej135_ue.enrolid AND ej135_e.courseid = :ej135_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu135_u.id LEFT JOIN {groups_members} gm135_gm2 ON (gm135_gm2.userid = eu135_u.id AND gm135_gm2.groupid = :gm135_810) WHERE 1 = 1 AND ej135_ue.status = :ej135_active AND ej135_e.status = :ej135_enabled AND ej135_ue.timestart < :ej135_now1 AND (ej135_ue.timeend = 0 OR ej135_ue.timeend > :ej135_now2) AND eu135_u.deleted = 0 AND eu135_u.id <> :eu135_guestid AND gm135_gm2.userid IS NOT NULL AND eu135_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu136_u.id FROM {user} eu136_u JOIN {user_enrolments} ej136_ue ON ej136_ue.userid = eu136_u.id JOIN {enrol} ej136_e ON (ej136_e.id = ej136_ue.enrolid AND ej136_e.courseid = :ej136_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu136_u.id LEFT JOIN {groups_members} gm136_gm2 ON (gm136_gm2.userid = eu136_u.id AND gm136_gm2.groupid = :gm136_816) WHERE 1 = 1 AND ej136_ue.status = :ej136_active AND ej136_e.status = :ej136_enabled AND ej136_ue.timestart < :ej136_now1 AND (ej136_ue.timeend = 0 OR ej136_ue.timeend > :ej136_now2) AND eu136_u.deleted = 0 AND eu136_u.id <> :eu136_guestid AND gm136_gm2.userid IS NOT NULL AND eu136_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu137_u.id FROM {user} eu137_u JOIN {user_enrolments} ej137_ue ON ej137_ue.userid = eu137_u.id JOIN {enrol} ej137_e ON (ej137_e.id = ej137_ue.enrolid AND ej137_e.courseid = :ej137_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu137_u.id LEFT JOIN {groups_members} gm137_gm2 ON (gm137_gm2.userid = eu137_u.id AND gm137_gm2.groupid = :gm137_822) WHERE 1 = 1 AND ej137_ue.status = :ej137_active AND ej137_e.status = :ej137_enabled AND ej137_ue.timestart < :ej137_now1 AND (ej137_ue.timeend = 0 OR ej137_ue.timeend > :ej137_now2) AND eu137_u.deleted = 0 AND eu137_u.id <> :eu137_guestid AND gm137_gm2.userid IS NOT NULL AND eu137_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu138_u.id FROM {user} eu138_u JOIN {user_enrolments} ej138_ue ON ej138_ue.userid = eu138_u.id JOIN {enrol} ej138_e ON (ej138_e.id = ej138_ue.enrolid AND ej138_e.courseid = :ej138_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu138_u.id LEFT JOIN {groups_members} gm138_gm2 ON (gm138_gm2.userid = eu138_u.id AND gm138_gm2.groupid = :gm138_828) WHERE 1 = 1 AND ej138_ue.status = :ej138_active AND ej138_e.status = :ej138_enabled AND ej138_ue.timestart < :ej138_now1 AND (ej138_ue.timeend = 0 OR ej138_ue.timeend > :ej138_now2) AND eu138_u.deleted = 0 AND eu138_u.id <> :eu138_guestid AND gm138_gm2.userid IS NOT NULL AND eu138_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu139_u.id FROM {user} eu139_u JOIN {user_enrolments} ej139_ue ON ej139_ue.userid = eu139_u.id JOIN {enrol} ej139_e ON (ej139_e.id = ej139_ue.enrolid AND ej139_e.courseid = :ej139_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu139_u.id LEFT JOIN {groups_members} gm139_gm2 ON (gm139_gm2.userid = eu139_u.id AND gm139_gm2.groupid = :gm139_834) WHERE 1 = 1 AND ej139_ue.status = :ej139_active AND ej139_e.status = :ej139_enabled AND ej139_ue.timestart < :ej139_now1 AND (ej139_ue.timeend = 0 OR ej139_ue.timeend > :ej139_now2) AND eu139_u.deleted = 0 AND eu139_u.id <> :eu139_guestid AND gm139_gm2.userid IS NOT NULL AND eu139_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu140_u.id FROM {user} eu140_u JOIN {user_enrolments} ej140_ue ON ej140_ue.userid = eu140_u.id JOIN {enrol} ej140_e ON (ej140_e.id = ej140_ue.enrolid AND ej140_e.courseid = :ej140_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu140_u.id LEFT JOIN {groups_members} gm140_gm2 ON (gm140_gm2.userid = eu140_u.id AND gm140_gm2.groupid = :gm140_840) WHERE 1 = 1 AND ej140_ue.status = :ej140_active AND ej140_e.status = :ej140_enabled AND ej140_ue.timestart < :ej140_now1 AND (ej140_ue.timeend = 0 OR ej140_ue.timeend > :ej140_now2) AND eu140_u.deleted = 0 AND eu140_u.id <> :eu140_guestid AND gm140_gm2.userid IS NOT NULL AND eu140_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu141_u.id FROM {user} eu141_u JOIN {user_enrolments} ej141_ue ON ej141_ue.userid = eu141_u.id JOIN {enrol} ej141_e ON (ej141_e.id = ej141_ue.enrolid AND ej141_e.courseid = :ej141_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu141_u.id LEFT JOIN {groups_members} gm141_gm2 ON (gm141_gm2.userid = eu141_u.id AND gm141_gm2.groupid = :gm141_846) WHERE 1 = 1 AND ej141_ue.status = :ej141_active AND ej141_e.status = :ej141_enabled AND ej141_ue.timestart < :ej141_now1 AND (ej141_ue.timeend = 0 OR ej141_ue.timeend > :ej141_now2) AND eu141_u.deleted = 0 AND eu141_u.id <> :eu141_guestid AND gm141_gm2.userid IS NOT NULL AND eu141_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu142_u.id FROM {user} eu142_u JOIN {user_enrolments} ej142_ue ON ej142_ue.userid = eu142_u.id JOIN {enrol} ej142_e ON (ej142_e.id = ej142_ue.enrolid AND ej142_e.courseid = :ej142_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu142_u.id LEFT JOIN {groups_members} gm142_gm2 ON (gm142_gm2.userid = eu142_u.id AND gm142_gm2.groupid = :gm142_852) WHERE 1 = 1 AND ej142_ue.status = :ej142_active AND ej142_e.status = :ej142_enabled AND ej142_ue.timestart < :ej142_now1 AND (ej142_ue.timeend = 0 OR ej142_ue.timeend > :ej142_now2) AND eu142_u.deleted = 0 AND eu142_u.id <> :eu142_guestid AND gm142_gm2.userid IS NOT NULL AND eu142_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu143_u.id FROM {user} eu143_u JOIN {user_enrolments} ej143_ue ON ej143_ue.userid = eu143_u.id JOIN {enrol} ej143_e ON (ej143_e.id = ej143_ue.enrolid AND ej143_e.courseid = :ej143_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu143_u.id LEFT JOIN {groups_members} gm143_gm2 ON (gm143_gm2.userid = eu143_u.id AND gm143_gm2.groupid = :gm143_858) WHERE 1 = 1 AND ej143_ue.status = :ej143_active AND ej143_e.status = :ej143_enabled AND ej143_ue.timestart < :ej143_now1 AND (ej143_ue.timeend = 0 OR ej143_ue.timeend > :ej143_now2) AND eu143_u.deleted = 0 AND eu143_u.id <> :eu143_guestid AND gm143_gm2.userid IS NOT NULL AND eu143_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu144_u.id FROM {user} eu144_u JOIN {user_enrolments} ej144_ue ON ej144_ue.userid = eu144_u.id JOIN {enrol} ej144_e ON (ej144_e.id = ej144_ue.enrolid AND ej144_e.courseid = :ej144_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu144_u.id LEFT JOIN {groups_members} gm144_gm2 ON (gm144_gm2.userid = eu144_u.id AND gm144_gm2.groupid = :gm144_864) WHERE 1 = 1 AND ej144_ue.status = :ej144_active AND ej144_e.status = :ej144_enabled AND ej144_ue.timestart < :ej144_now1 AND (ej144_ue.timeend = 0 OR ej144_ue.timeend > :ej144_now2) AND eu144_u.deleted = 0 AND eu144_u.id <> :eu144_guestid AND gm144_gm2.userid IS NOT NULL AND eu144_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu145_u.id FROM {user} eu145_u JOIN {user_enrolments} ej145_ue ON ej145_ue.userid = eu145_u.id JOIN {enrol} ej145_e ON (ej145_e.id = ej145_ue.enrolid AND ej145_e.courseid = :ej145_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu145_u.id LEFT JOIN {groups_members} gm145_gm2 ON (gm145_gm2.userid = eu145_u.id AND gm145_gm2.groupid = :gm145_870) WHERE 1 = 1 AND ej145_ue.status = :ej145_active AND ej145_e.status = :ej145_enabled AND ej145_ue.timestart < :ej145_now1 AND (ej145_ue.timeend = 0 OR ej145_ue.timeend > :ej145_now2) AND eu145_u.deleted = 0 AND eu145_u.id <> :eu145_guestid AND gm145_gm2.userid IS NOT NULL AND eu145_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu146_u.id FROM {user} eu146_u JOIN {user_enrolments} ej146_ue ON ej146_ue.userid = eu146_u.id JOIN {enrol} ej146_e ON (ej146_e.id = ej146_ue.enrolid AND ej146_e.courseid = :ej146_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu146_u.id LEFT JOIN {groups_members} gm146_gm2 ON (gm146_gm2.userid = eu146_u.id AND gm146_gm2.groupid = :gm146_876) WHERE 1 = 1 AND ej146_ue.status = :ej146_active AND ej146_e.status = :ej146_enabled AND ej146_ue.timestart < :ej146_now1 AND (ej146_ue.timeend = 0 OR ej146_ue.timeend > :ej146_now2) AND eu146_u.deleted = 0 AND eu146_u.id <> :eu146_guestid AND gm146_gm2.userid IS NOT NULL AND eu146_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu147_u.id FROM {user} eu147_u JOIN {user_enrolments} ej147_ue ON ej147_ue.userid = eu147_u.id JOIN {enrol} ej147_e ON (ej147_e.id = ej147_ue.enrolid AND ej147_e.courseid = :ej147_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu147_u.id LEFT JOIN {groups_members} gm147_gm2 ON (gm147_gm2.userid = eu147_u.id AND gm147_gm2.groupid = :gm147_882) WHERE 1 = 1 AND ej147_ue.status = :ej147_active AND ej147_e.status = :ej147_enabled AND ej147_ue.timestart < :ej147_now1 AND (ej147_ue.timeend = 0 OR ej147_ue.timeend > :ej147_now2) AND eu147_u.deleted = 0 AND eu147_u.id <> :eu147_guestid AND gm147_gm2.userid IS NOT NULL AND eu147_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu148_u.id FROM {user} eu148_u JOIN {user_enrolments} ej148_ue ON ej148_ue.userid = eu148_u.id JOIN {enrol} ej148_e ON (ej148_e.id = ej148_ue.enrolid AND ej148_e.courseid = :ej148_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu148_u.id LEFT JOIN {groups_members} gm148_gm2 ON (gm148_gm2.userid = eu148_u.id AND gm148_gm2.groupid = :gm148_888) WHERE 1 = 1 AND ej148_ue.status = :ej148_active AND ej148_e.status = :ej148_enabled AND ej148_ue.timestart < :ej148_now1 AND (ej148_ue.timeend = 0 OR ej148_ue.timeend > :ej148_now2) AND eu148_u.deleted = 0 AND eu148_u.id <> :eu148_guestid AND gm148_gm2.userid IS NOT NULL AND eu148_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu149_u.id FROM {user} eu149_u JOIN {user_enrolments} ej149_ue ON ej149_ue.userid = eu149_u.id JOIN {enrol} ej149_e ON (ej149_e.id = ej149_ue.enrolid AND ej149_e.courseid = :ej149_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu149_u.id LEFT JOIN {groups_members} gm149_gm2 ON (gm149_gm2.userid = eu149_u.id AND gm149_gm2.groupid = :gm149_894) WHERE 1 = 1 AND ej149_ue.status = :ej149_active AND ej149_e.status = :ej149_enabled AND ej149_ue.timestart < :ej149_now1 AND (ej149_ue.timeend = 0 OR ej149_ue.timeend > :ej149_now2) AND eu149_u.deleted = 0 AND eu149_u.id <> :eu149_guestid AND gm149_gm2.userid IS NOT NULL AND eu149_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu150_u.id FROM {user} eu150_u JOIN {user_enrolments} ej150_ue ON ej150_ue.userid = eu150_u.id JOIN {enrol} ej150_e ON (ej150_e.id = ej150_ue.enrolid AND ej150_e.courseid = :ej150_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu150_u.id LEFT JOIN {groups_members} gm150_gm2 ON (gm150_gm2.userid = eu150_u.id AND gm150_gm2.groupid = :gm150_900) WHERE 1 = 1 AND ej150_ue.status = :ej150_active AND ej150_e.status = :ej150_enabled AND ej150_ue.timestart < :ej150_now1 AND (ej150_ue.timeend = 0 OR ej150_ue.timeend > :ej150_now2) AND eu150_u.deleted = 0 AND eu150_u.id <> :eu150_guestid AND gm150_gm2.userid IS NOT NULL AND eu150_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu151_u.id FROM {user} eu151_u JOIN {user_enrolments} ej151_ue ON ej151_ue.userid = eu151_u.id JOIN {enrol} ej151_e ON (ej151_e.id = ej151_ue.enrolid AND ej151_e.courseid = :ej151_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu151_u.id LEFT JOIN {groups_members} gm151_gm2 ON (gm151_gm2.userid = eu151_u.id AND gm151_gm2.groupid = :gm151_906) WHERE 1 = 1 AND ej151_ue.status = :ej151_active AND ej151_e.status = :ej151_enabled AND ej151_ue.timestart < :ej151_now1 AND (ej151_ue.timeend = 0 OR ej151_ue.timeend > :ej151_now2) AND eu151_u.deleted = 0 AND eu151_u.id <> :eu151_guestid AND gm151_gm2.userid IS NOT NULL AND eu151_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu152_u.id FROM {user} eu152_u JOIN {user_enrolments} ej152_ue ON ej152_ue.userid = eu152_u.id JOIN {enrol} ej152_e ON (ej152_e.id = ej152_ue.enrolid AND ej152_e.courseid = :ej152_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu152_u.id LEFT JOIN {groups_members} gm152_gm2 ON (gm152_gm2.userid = eu152_u.id AND gm152_gm2.groupid = :gm152_912) WHERE 1 = 1 AND ej152_ue.status = :ej152_active AND ej152_e.status = :ej152_enabled AND ej152_ue.timestart < :ej152_now1 AND (ej152_ue.timeend = 0 OR ej152_ue.timeend > :ej152_now2) AND eu152_u.deleted = 0 AND eu152_u.id <> :eu152_guestid AND gm152_gm2.userid IS NOT NULL AND eu152_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu153_u.id FROM {user} eu153_u JOIN {user_enrolments} ej153_ue ON ej153_ue.userid = eu153_u.id JOIN {enrol} ej153_e ON (ej153_e.id = ej153_ue.enrolid AND ej153_e.courseid = :ej153_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu153_u.id LEFT JOIN {groups_members} gm153_gm2 ON (gm153_gm2.userid = eu153_u.id AND gm153_gm2.groupid = :gm153_918) WHERE 1 = 1 AND ej153_ue.status = :ej153_active AND ej153_e.status = :ej153_enabled AND ej153_ue.timestart < :ej153_now1 AND (ej153_ue.timeend = 0 OR ej153_ue.timeend > :ej153_now2) AND eu153_u.deleted = 0 AND eu153_u.id <> :eu153_guestid AND gm153_gm2.userid IS NOT NULL AND eu153_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu154_u.id FROM {user} eu154_u JOIN {user_enrolments} ej154_ue ON ej154_ue.userid = eu154_u.id JOIN {enrol} ej154_e ON (ej154_e.id = ej154_ue.enrolid AND ej154_e.courseid = :ej154_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu154_u.id LEFT JOIN {groups_members} gm154_gm2 ON (gm154_gm2.userid = eu154_u.id AND gm154_gm2.groupid = :gm154_924) WHERE 1 = 1 AND ej154_ue.status = :ej154_active AND ej154_e.status = :ej154_enabled AND ej154_ue.timestart < :ej154_now1 AND (ej154_ue.timeend = 0 OR ej154_ue.timeend > :ej154_now2) AND eu154_u.deleted = 0 AND eu154_u.id <> :eu154_guestid AND gm154_gm2.userid IS NOT NULL AND eu154_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu155_u.id FROM {user} eu155_u JOIN {user_enrolments} ej155_ue ON ej155_ue.userid = eu155_u.id JOIN {enrol} ej155_e ON (ej155_e.id = ej155_ue.enrolid AND ej155_e.courseid = :ej155_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu155_u.id LEFT JOIN {groups_members} gm155_gm2 ON (gm155_gm2.userid = eu155_u.id AND gm155_gm2.groupid = :gm155_930) WHERE 1 = 1 AND ej155_ue.status = :ej155_active AND ej155_e.status = :ej155_enabled AND ej155_ue.timestart < :ej155_now1 AND (ej155_ue.timeend = 0 OR ej155_ue.timeend > :ej155_now2) AND eu155_u.deleted = 0 AND eu155_u.id <> :eu155_guestid AND gm155_gm2.userid IS NOT NULL AND eu155_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu156_u.id FROM {user} eu156_u JOIN {user_enrolments} ej156_ue ON ej156_ue.userid = eu156_u.id JOIN {enrol} ej156_e ON (ej156_e.id = ej156_ue.enrolid AND ej156_e.courseid = :ej156_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu156_u.id LEFT JOIN {groups_members} gm156_gm2 ON (gm156_gm2.userid = eu156_u.id AND gm156_gm2.groupid = :gm156_936) WHERE 1 = 1 AND ej156_ue.status = :ej156_active AND ej156_e.status = :ej156_enabled AND ej156_ue.timestart < :ej156_now1 AND (ej156_ue.timeend = 0 OR ej156_ue.timeend > :ej156_now2) AND eu156_u.deleted = 0 AND eu156_u.id <> :eu156_guestid AND gm156_gm2.userid IS NOT NULL AND eu156_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu157_u.id FROM {user} eu157_u JOIN {user_enrolments} ej157_ue ON ej157_ue.userid = eu157_u.id JOIN {enrol} ej157_e ON (ej157_e.id = ej157_ue.enrolid AND ej157_e.courseid = :ej157_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu157_u.id LEFT JOIN {groups_members} gm157_gm2 ON (gm157_gm2.userid = eu157_u.id AND gm157_gm2.groupid = :gm157_942) WHERE 1 = 1 AND ej157_ue.status = :ej157_active AND ej157_e.status = :ej157_enabled AND ej157_ue.timestart < :ej157_now1 AND (ej157_ue.timeend = 0 OR ej157_ue.timeend > :ej157_now2) AND eu157_u.deleted = 0 AND eu157_u.id <> :eu157_guestid AND gm157_gm2.userid IS NOT NULL AND eu157_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu158_u.id FROM {user} eu158_u JOIN {user_enrolments} ej158_ue ON ej158_ue.userid = eu158_u.id JOIN {enrol} ej158_e ON (ej158_e.id = ej158_ue.enrolid AND ej158_e.courseid = :ej158_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu158_u.id LEFT JOIN {groups_members} gm158_gm2 ON (gm158_gm2.userid = eu158_u.id AND gm158_gm2.groupid = :gm158_948) WHERE 1 = 1 AND ej158_ue.status = :ej158_active AND ej158_e.status = :ej158_enabled AND ej158_ue.timestart < :ej158_now1 AND (ej158_ue.timeend = 0 OR ej158_ue.timeend > :ej158_now2) AND eu158_u.deleted = 0 AND eu158_u.id <> :eu158_guestid AND gm158_gm2.userid IS NOT NULL AND eu158_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu159_u.id FROM {user} eu159_u JOIN {user_enrolments} ej159_ue ON ej159_ue.userid = eu159_u.id JOIN {enrol} ej159_e ON (ej159_e.id = ej159_ue.enrolid AND ej159_e.courseid = :ej159_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu159_u.id LEFT JOIN {groups_members} gm159_gm2 ON (gm159_gm2.userid = eu159_u.id AND gm159_gm2.groupid = :gm159_954) WHERE 1 = 1 AND ej159_ue.status = :ej159_active AND ej159_e.status = :ej159_enabled AND ej159_ue.timestart < :ej159_now1 AND (ej159_ue.timeend = 0 OR ej159_ue.timeend > :ej159_now2) AND eu159_u.deleted = 0 AND eu159_u.id <> :eu159_guestid AND gm159_gm2.userid IS NOT NULL AND eu159_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu160_u.id FROM {user} eu160_u JOIN {user_enrolments} ej160_ue ON ej160_ue.userid = eu160_u.id JOIN {enrol} ej160_e ON (ej160_e.id = ej160_ue.enrolid AND ej160_e.courseid = :ej160_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu160_u.id LEFT JOIN {groups_members} gm160_gm2 ON (gm160_gm2.userid = eu160_u.id AND gm160_gm2.groupid = :gm160_960) WHERE 1 = 1 AND ej160_ue.status = :ej160_active AND ej160_e.status = :ej160_enabled AND ej160_ue.timestart < :ej160_now1 AND (ej160_ue.timeend = 0 OR ej160_ue.timeend > :ej160_now2) AND eu160_u.deleted = 0 AND eu160_u.id <> :eu160_guestid AND gm160_gm2.userid IS NOT NULL AND eu160_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu161_u.id FROM {user} eu161_u JOIN {user_enrolments} ej161_ue ON ej161_ue.userid = eu161_u.id JOIN {enrol} ej161_e ON (ej161_e.id = ej161_ue.enrolid AND ej161_e.courseid = :ej161_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu161_u.id LEFT JOIN {groups_members} gm161_gm2 ON (gm161_gm2.userid = eu161_u.id AND gm161_gm2.groupid = :gm161_966) WHERE 1 = 1 AND ej161_ue.status = :ej161_active AND ej161_e.status = :ej161_enabled AND ej161_ue.timestart < :ej161_now1 AND (ej161_ue.timeend = 0 OR ej161_ue.timeend > :ej161_now2) AND eu161_u.deleted = 0 AND eu161_u.id <> :eu161_guestid AND gm161_gm2.userid IS NOT NULL AND eu161_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu162_u.id FROM {user} eu162_u JOIN {user_enrolments} ej162_ue ON ej162_ue.userid = eu162_u.id JOIN {enrol} ej162_e ON (ej162_e.id = ej162_ue.enrolid AND ej162_e.courseid = :ej162_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu162_u.id LEFT JOIN {groups_members} gm162_gm2 ON (gm162_gm2.userid = eu162_u.id AND gm162_gm2.groupid = :gm162_972) WHERE 1 = 1 AND ej162_ue.status = :ej162_active AND ej162_e.status = :ej162_enabled AND ej162_ue.timestart < :ej162_now1 AND (ej162_ue.timeend = 0 OR ej162_ue.timeend > :ej162_now2) AND eu162_u.deleted = 0 AND eu162_u.id <> :eu162_guestid AND gm162_gm2.userid IS NOT NULL AND eu162_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu163_u.id FROM {user} eu163_u JOIN {user_enrolments} ej163_ue ON ej163_ue.userid = eu163_u.id JOIN {enrol} ej163_e ON (ej163_e.id = ej163_ue.enrolid AND ej163_e.courseid = :ej163_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu163_u.id LEFT JOIN {groups_members} gm163_gm2 ON (gm163_gm2.userid = eu163_u.id AND gm163_gm2.groupid = :gm163_978) WHERE 1 = 1 AND ej163_ue.status = :ej163_active AND ej163_e.status = :ej163_enabled AND ej163_ue.timestart < :ej163_now1 AND (ej163_ue.timeend = 0 OR ej163_ue.timeend > :ej163_now2) AND eu163_u.deleted = 0 AND eu163_u.id <> :eu163_guestid AND gm163_gm2.userid IS NOT NULL AND eu163_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu164_u.id FROM {user} eu164_u JOIN {user_enrolments} ej164_ue ON ej164_ue.userid = eu164_u.id JOIN {enrol} ej164_e ON (ej164_e.id = ej164_ue.enrolid AND ej164_e.courseid = :ej164_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu164_u.id LEFT JOIN {groups_members} gm164_gm2 ON (gm164_gm2.userid = eu164_u.id AND gm164_gm2.groupid = :gm164_984) WHERE 1 = 1 AND ej164_ue.status = :ej164_active AND ej164_e.status = :ej164_enabled AND ej164_ue.timestart < :ej164_now1 AND (ej164_ue.timeend = 0 OR ej164_ue.timeend > :ej164_now2) AND eu164_u.deleted = 0 AND eu164_u.id <> :eu164_guestid AND gm164_gm2.userid IS NOT NULL AND eu164_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu165_u.id FROM {user} eu165_u JOIN {user_enrolments} ej165_ue ON ej165_ue.userid = eu165_u.id JOIN {enrol} ej165_e ON (ej165_e.id = ej165_ue.enrolid AND ej165_e.courseid = :ej165_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu165_u.id LEFT JOIN {groups_members} gm165_gm2 ON (gm165_gm2.userid = eu165_u.id AND gm165_gm2.groupid = :gm165_990) WHERE 1 = 1 AND ej165_ue.status = :ej165_active AND ej165_e.status = :ej165_enabled AND ej165_ue.timestart < :ej165_now1 AND (ej165_ue.timeend = 0 OR ej165_ue.timeend > :ej165_now2) AND eu165_u.deleted = 0 AND eu165_u.id <> :eu165_guestid AND gm165_gm2.userid IS NOT NULL AND eu165_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu166_u.id FROM {user} eu166_u JOIN {user_enrolments} ej166_ue ON ej166_ue.userid = eu166_u.id JOIN {enrol} ej166_e ON (ej166_e.id = ej166_ue.enrolid AND ej166_e.courseid = :ej166_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu166_u.id LEFT JOIN {groups_members} gm166_gm2 ON (gm166_gm2.userid = eu166_u.id AND gm166_gm2.groupid = :gm166_996) WHERE 1 = 1 AND ej166_ue.status = :ej166_active AND ej166_e.status = :ej166_enabled AND ej166_ue.timestart < :ej166_now1 AND (ej166_ue.timeend = 0 OR ej166_ue.timeend > :ej166_now2) AND eu166_u.deleted = 0 AND eu166_u.id <> :eu166_guestid AND gm166_gm2.userid IS NOT NULL AND eu166_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu167_u.id FROM {user} eu167_u JOIN {user_enrolments} ej167_ue ON ej167_ue.userid = eu167_u.id JOIN {enrol} ej167_e ON (ej167_e.id = ej167_ue.enrolid AND ej167_e.courseid = :ej167_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu167_u.id LEFT JOIN {groups_members} gm167_gm2 ON (gm167_gm2.userid = eu167_u.id AND gm167_gm2.groupid = :gm167_1002) WHERE 1 = 1 AND ej167_ue.status = :ej167_active AND ej167_e.status = :ej167_enabled AND ej167_ue.timestart < :ej167_now1 AND (ej167_ue.timeend = 0 OR ej167_ue.timeend > :ej167_now2) AND eu167_u.deleted = 0 AND eu167_u.id <> :eu167_guestid AND gm167_gm2.userid IS NOT NULL AND eu167_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu168_u.id FROM {user} eu168_u JOIN {user_enrolments} ej168_ue ON ej168_ue.userid = eu168_u.id JOIN {enrol} ej168_e ON (ej168_e.id = ej168_ue.enrolid AND ej168_e.courseid = :ej168_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu168_u.id LEFT JOIN {groups_members} gm168_gm2 ON (gm168_gm2.userid = eu168_u.id AND gm168_gm2.groupid = :gm168_1008) WHERE 1 = 1 AND ej168_ue.status = :ej168_active AND ej168_e.status = :ej168_enabled AND ej168_ue.timestart < :ej168_now1 AND (ej168_ue.timeend = 0 OR ej168_ue.timeend > :ej168_now2) AND eu168_u.deleted = 0 AND eu168_u.id <> :eu168_guestid AND gm168_gm2.userid IS NOT NULL AND eu168_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu169_u.id FROM {user} eu169_u JOIN {user_enrolments} ej169_ue ON ej169_ue.userid = eu169_u.id JOIN {enrol} ej169_e ON (ej169_e.id = ej169_ue.enrolid AND ej169_e.courseid = :ej169_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu169_u.id LEFT JOIN {groups_members} gm169_gm2 ON (gm169_gm2.userid = eu169_u.id AND gm169_gm2.groupid = :gm169_1014) WHERE 1 = 1 AND ej169_ue.status = :ej169_active AND ej169_e.status = :ej169_enabled AND ej169_ue.timestart < :ej169_now1 AND (ej169_ue.timeend = 0 OR ej169_ue.timeend > :ej169_now2) AND eu169_u.deleted = 0 AND eu169_u.id <> :eu169_guestid AND gm169_gm2.userid IS NOT NULL AND eu169_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu170_u.id FROM {user} eu170_u JOIN {user_enrolments} ej170_ue ON ej170_ue.userid = eu170_u.id JOIN {enrol} ej170_e ON (ej170_e.id = ej170_ue.enrolid AND ej170_e.courseid = :ej170_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu170_u.id LEFT JOIN {groups_members} gm170_gm2 ON (gm170_gm2.userid = eu170_u.id AND gm170_gm2.groupid = :gm170_1020) WHERE 1 = 1 AND ej170_ue.status = :ej170_active AND ej170_e.status = :ej170_enabled AND ej170_ue.timestart < :ej170_now1 AND (ej170_ue.timeend = 0 OR ej170_ue.timeend > :ej170_now2) AND eu170_u.deleted = 0 AND eu170_u.id <> :eu170_guestid AND gm170_gm2.userid IS NOT NULL AND eu170_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu171_u.id FROM {user} eu171_u JOIN {user_enrolments} ej171_ue ON ej171_ue.userid = eu171_u.id JOIN {enrol} ej171_e ON (ej171_e.id = ej171_ue.enrolid AND ej171_e.courseid = :ej171_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu171_u.id LEFT JOIN {groups_members} gm171_gm2 ON (gm171_gm2.userid = eu171_u.id AND gm171_gm2.groupid = :gm171_1026) WHERE 1 = 1 AND ej171_ue.status = :ej171_active AND ej171_e.status = :ej171_enabled AND ej171_ue.timestart < :ej171_now1 AND (ej171_ue.timeend = 0 OR ej171_ue.timeend > :ej171_now2) AND eu171_u.deleted = 0 AND eu171_u.id <> :eu171_guestid AND gm171_gm2.userid IS NOT NULL AND eu171_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu172_u.id FROM {user} eu172_u JOIN {user_enrolments} ej172_ue ON ej172_ue.userid = eu172_u.id JOIN {enrol} ej172_e ON (ej172_e.id = ej172_ue.enrolid AND ej172_e.courseid = :ej172_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu172_u.id LEFT JOIN {groups_members} gm172_gm2 ON (gm172_gm2.userid = eu172_u.id AND gm172_gm2.groupid = :gm172_1032) WHERE 1 = 1 AND ej172_ue.status = :ej172_active AND ej172_e.status = :ej172_enabled AND ej172_ue.timestart < :ej172_now1 AND (ej172_ue.timeend = 0 OR ej172_ue.timeend > :ej172_now2) AND eu172_u.deleted = 0 AND eu172_u.id <> :eu172_guestid AND gm172_gm2.userid IS NOT NULL AND eu172_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu173_u.id FROM {user} eu173_u JOIN {user_enrolments} ej173_ue ON ej173_ue.userid = eu173_u.id JOIN {enrol} ej173_e ON (ej173_e.id = ej173_ue.enrolid AND ej173_e.courseid = :ej173_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu173_u.id LEFT JOIN {groups_members} gm173_gm2 ON (gm173_gm2.userid = eu173_u.id AND gm173_gm2.groupid = :gm173_1038) WHERE 1 = 1 AND ej173_ue.status = :ej173_active AND ej173_e.status = :ej173_enabled AND ej173_ue.timestart < :ej173_now1 AND (ej173_ue.timeend = 0 OR ej173_ue.timeend > :ej173_now2) AND eu173_u.deleted = 0 AND eu173_u.id <> :eu173_guestid AND gm173_gm2.userid IS NOT NULL AND eu173_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu174_u.id FROM {user} eu174_u JOIN {user_enrolments} ej174_ue ON ej174_ue.userid = eu174_u.id JOIN {enrol} ej174_e ON (ej174_e.id = ej174_ue.enrolid AND ej174_e.courseid = :ej174_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu174_u.id LEFT JOIN {groups_members} gm174_gm2 ON (gm174_gm2.userid = eu174_u.id AND gm174_gm2.groupid = :gm174_1044) WHERE 1 = 1 AND ej174_ue.status = :ej174_active AND ej174_e.status = :ej174_enabled AND ej174_ue.timestart < :ej174_now1 AND (ej174_ue.timeend = 0 OR ej174_ue.timeend > :ej174_now2) AND eu174_u.deleted = 0 AND eu174_u.id <> :eu174_guestid AND gm174_gm2.userid IS NOT NULL AND eu174_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu175_u.id FROM {user} eu175_u JOIN {user_enrolments} ej175_ue ON ej175_ue.userid = eu175_u.id JOIN {enrol} ej175_e ON (ej175_e.id = ej175_ue.enrolid AND ej175_e.courseid = :ej175_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu175_u.id LEFT JOIN {groups_members} gm175_gm2 ON (gm175_gm2.userid = eu175_u.id AND gm175_gm2.groupid = :gm175_1050) WHERE 1 = 1 AND ej175_ue.status = :ej175_active AND ej175_e.status = :ej175_enabled AND ej175_ue.timestart < :ej175_now1 AND (ej175_ue.timeend = 0 OR ej175_ue.timeend > :ej175_now2) AND eu175_u.deleted = 0 AND eu175_u.id <> :eu175_guestid AND gm175_gm2.userid IS NOT NULL AND eu175_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu176_u.id FROM {user} eu176_u JOIN {user_enrolments} ej176_ue ON ej176_ue.userid = eu176_u.id JOIN {enrol} ej176_e ON (ej176_e.id = ej176_ue.enrolid AND ej176_e.courseid = :ej176_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu176_u.id LEFT JOIN {groups_members} gm176_gm2 ON (gm176_gm2.userid = eu176_u.id AND gm176_gm2.groupid = :gm176_1056) WHERE 1 = 1 AND ej176_ue.status = :ej176_active AND ej176_e.status = :ej176_enabled AND ej176_ue.timestart < :ej176_now1 AND (ej176_ue.timeend = 0 OR ej176_ue.timeend > :ej176_now2) AND eu176_u.deleted = 0 AND eu176_u.id <> :eu176_guestid AND gm176_gm2.userid IS NOT NULL AND eu176_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu177_u.id FROM {user} eu177_u JOIN {user_enrolments} ej177_ue ON ej177_ue.userid = eu177_u.id JOIN {enrol} ej177_e ON (ej177_e.id = ej177_ue.enrolid AND ej177_e.courseid = :ej177_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu177_u.id LEFT JOIN {groups_members} gm177_gm2 ON (gm177_gm2.userid = eu177_u.id AND gm177_gm2.groupid = :gm177_1062) WHERE 1 = 1 AND ej177_ue.status = :ej177_active AND ej177_e.status = :ej177_enabled AND ej177_ue.timestart < :ej177_now1 AND (ej177_ue.timeend = 0 OR ej177_ue.timeend > :ej177_now2) AND eu177_u.deleted = 0 AND eu177_u.id <> :eu177_guestid AND gm177_gm2.userid IS NOT NULL AND eu177_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu178_u.id FROM {user} eu178_u JOIN {user_enrolments} ej178_ue ON ej178_ue.userid = eu178_u.id JOIN {enrol} ej178_e ON (ej178_e.id = ej178_ue.enrolid AND ej178_e.courseid = :ej178_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu178_u.id LEFT JOIN {groups_members} gm178_gm2 ON (gm178_gm2.userid = eu178_u.id AND gm178_gm2.groupid = :gm178_1068) WHERE 1 = 1 AND ej178_ue.status = :ej178_active AND ej178_e.status = :ej178_enabled AND ej178_ue.timestart < :ej178_now1 AND (ej178_ue.timeend = 0 OR ej178_ue.timeend > :ej178_now2) AND eu178_u.deleted = 0 AND eu178_u.id <> :eu178_guestid AND gm178_gm2.userid IS NOT NULL AND eu178_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu179_u.id FROM {user} eu179_u JOIN {user_enrolments} ej179_ue ON ej179_ue.userid = eu179_u.id JOIN {enrol} ej179_e ON (ej179_e.id = ej179_ue.enrolid AND ej179_e.courseid = :ej179_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu179_u.id LEFT JOIN {groups_members} gm179_gm2 ON (gm179_gm2.userid = eu179_u.id AND gm179_gm2.groupid = :gm179_1074) WHERE 1 = 1 AND ej179_ue.status = :ej179_active AND ej179_e.status = :ej179_enabled AND ej179_ue.timestart < :ej179_now1 AND (ej179_ue.timeend = 0 OR ej179_ue.timeend > :ej179_now2) AND eu179_u.deleted = 0 AND eu179_u.id <> :eu179_guestid AND gm179_gm2.userid IS NOT NULL AND eu179_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu180_u.id FROM {user} eu180_u JOIN {user_enrolments} ej180_ue ON ej180_ue.userid = eu180_u.id JOIN {enrol} ej180_e ON (ej180_e.id = ej180_ue.enrolid AND ej180_e.courseid = :ej180_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu180_u.id LEFT JOIN {groups_members} gm180_gm2 ON (gm180_gm2.userid = eu180_u.id AND gm180_gm2.groupid = :gm180_1080) WHERE 1 = 1 AND ej180_ue.status = :ej180_active AND ej180_e.status = :ej180_enabled AND ej180_ue.timestart < :ej180_now1 AND (ej180_ue.timeend = 0 OR ej180_ue.timeend > :ej180_now2) AND eu180_u.deleted = 0 AND eu180_u.id <> :eu180_guestid AND gm180_gm2.userid IS NOT NULL AND eu180_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu181_u.id FROM {user} eu181_u JOIN {user_enrolments} ej181_ue ON ej181_ue.userid = eu181_u.id JOIN {enrol} ej181_e ON (ej181_e.id = ej181_ue.enrolid AND ej181_e.courseid = :ej181_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu181_u.id LEFT JOIN {groups_members} gm181_gm2 ON (gm181_gm2.userid = eu181_u.id AND gm181_gm2.groupid = :gm181_1086) WHERE 1 = 1 AND ej181_ue.status = :ej181_active AND ej181_e.status = :ej181_enabled AND ej181_ue.timestart < :ej181_now1 AND (ej181_ue.timeend = 0 OR ej181_ue.timeend > :ej181_now2) AND eu181_u.deleted = 0 AND eu181_u.id <> :eu181_guestid AND gm181_gm2.userid IS NOT NULL AND eu181_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu182_u.id FROM {user} eu182_u JOIN {user_enrolments} ej182_ue ON ej182_ue.userid = eu182_u.id JOIN {enrol} ej182_e ON (ej182_e.id = ej182_ue.enrolid AND ej182_e.courseid = :ej182_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu182_u.id LEFT JOIN {groups_members} gm182_gm2 ON (gm182_gm2.userid = eu182_u.id AND gm182_gm2.groupid = :gm182_1092) WHERE 1 = 1 AND ej182_ue.status = :ej182_active AND ej182_e.status = :ej182_enabled AND ej182_ue.timestart < :ej182_now1 AND (ej182_ue.timeend = 0 OR ej182_ue.timeend > :ej182_now2) AND eu182_u.deleted = 0 AND eu182_u.id <> :eu182_guestid AND gm182_gm2.userid IS NOT NULL AND eu182_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu183_u.id FROM {user} eu183_u JOIN {user_enrolments} ej183_ue ON ej183_ue.userid = eu183_u.id JOIN {enrol} ej183_e ON (ej183_e.id = ej183_ue.enrolid AND ej183_e.courseid = :ej183_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu183_u.id LEFT JOIN {groups_members} gm183_gm2 ON (gm183_gm2.userid = eu183_u.id AND gm183_gm2.groupid = :gm183_1098) WHERE 1 = 1 AND ej183_ue.status = :ej183_active AND ej183_e.status = :ej183_enabled AND ej183_ue.timestart < :ej183_now1 AND (ej183_ue.timeend = 0 OR ej183_ue.timeend > :ej183_now2) AND eu183_u.deleted = 0 AND eu183_u.id <> :eu183_guestid AND gm183_gm2.userid IS NOT NULL AND eu183_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu184_u.id FROM {user} eu184_u JOIN {user_enrolments} ej184_ue ON ej184_ue.userid = eu184_u.id JOIN {enrol} ej184_e ON (ej184_e.id = ej184_ue.enrolid AND ej184_e.courseid = :ej184_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu184_u.id LEFT JOIN {groups_members} gm184_gm2 ON (gm184_gm2.userid = eu184_u.id AND gm184_gm2.groupid = :gm184_1104) WHERE 1 = 1 AND ej184_ue.status = :ej184_active AND ej184_e.status = :ej184_enabled AND ej184_ue.timestart < :ej184_now1 AND (ej184_ue.timeend = 0 OR ej184_ue.timeend > :ej184_now2) AND eu184_u.deleted = 0 AND eu184_u.id <> :eu184_guestid AND gm184_gm2.userid IS NOT NULL AND eu184_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu185_u.id FROM {user} eu185_u JOIN {user_enrolments} ej185_ue ON ej185_ue.userid = eu185_u.id JOIN {enrol} ej185_e ON (ej185_e.id = ej185_ue.enrolid AND ej185_e.courseid = :ej185_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu185_u.id LEFT JOIN {groups_members} gm185_gm2 ON (gm185_gm2.userid = eu185_u.id AND gm185_gm2.groupid = :gm185_1110) WHERE 1 = 1 AND ej185_ue.status = :ej185_active AND ej185_e.status = :ej185_enabled AND ej185_ue.timestart < :ej185_now1 AND (ej185_ue.timeend = 0 OR ej185_ue.timeend > :ej185_now2) AND eu185_u.deleted = 0 AND eu185_u.id <> :eu185_guestid AND gm185_gm2.userid IS NOT NULL AND eu185_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu186_u.id FROM {user} eu186_u JOIN {user_enrolments} ej186_ue ON ej186_ue.userid = eu186_u.id JOIN {enrol} ej186_e ON (ej186_e.id = ej186_ue.enrolid AND ej186_e.courseid = :ej186_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu186_u.id LEFT JOIN {groups_members} gm186_gm2 ON (gm186_gm2.userid = eu186_u.id AND gm186_gm2.groupid = :gm186_1116) WHERE 1 = 1 AND ej186_ue.status = :ej186_active AND ej186_e.status = :ej186_enabled AND ej186_ue.timestart < :ej186_now1 AND (ej186_ue.timeend = 0 OR ej186_ue.timeend > :ej186_now2) AND eu186_u.deleted = 0 AND eu186_u.id <> :eu186_guestid AND gm186_gm2.userid IS NOT NULL AND eu186_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu187_u.id FROM {user} eu187_u JOIN {user_enrolments} ej187_ue ON ej187_ue.userid = eu187_u.id JOIN {enrol} ej187_e ON (ej187_e.id = ej187_ue.enrolid AND ej187_e.courseid = :ej187_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu187_u.id LEFT JOIN {groups_members} gm187_gm2 ON (gm187_gm2.userid = eu187_u.id AND gm187_gm2.groupid = :gm187_1122) WHERE 1 = 1 AND ej187_ue.status = :ej187_active AND ej187_e.status = :ej187_enabled AND ej187_ue.timestart < :ej187_now1 AND (ej187_ue.timeend = 0 OR ej187_ue.timeend > :ej187_now2) AND eu187_u.deleted = 0 AND eu187_u.id <> :eu187_guestid AND gm187_gm2.userid IS NOT NULL AND eu187_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu188_u.id FROM {user} eu188_u JOIN {user_enrolments} ej188_ue ON ej188_ue.userid = eu188_u.id JOIN {enrol} ej188_e ON (ej188_e.id = ej188_ue.enrolid AND ej188_e.courseid = :ej188_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu188_u.id LEFT JOIN {groups_members} gm188_gm2 ON (gm188_gm2.userid = eu188_u.id AND gm188_gm2.groupid = :gm188_1128) WHERE 1 = 1 AND ej188_ue.status = :ej188_active AND ej188_e.status = :ej188_enabled AND ej188_ue.timestart < :ej188_now1 AND (ej188_ue.timeend = 0 OR ej188_ue.timeend > :ej188_now2) AND eu188_u.deleted = 0 AND eu188_u.id <> :eu188_guestid AND gm188_gm2.userid IS NOT NULL AND eu188_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu189_u.id FROM {user} eu189_u JOIN {user_enrolments} ej189_ue ON ej189_ue.userid = eu189_u.id JOIN {enrol} ej189_e ON (ej189_e.id = ej189_ue.enrolid AND ej189_e.courseid = :ej189_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu189_u.id LEFT JOIN {groups_members} gm189_gm2 ON (gm189_gm2.userid = eu189_u.id AND gm189_gm2.groupid = :gm189_1134) WHERE 1 = 1 AND ej189_ue.status = :ej189_active AND ej189_e.status = :ej189_enabled AND ej189_ue.timestart < :ej189_now1 AND (ej189_ue.timeend = 0 OR ej189_ue.timeend > :ej189_now2) AND eu189_u.deleted = 0 AND eu189_u.id <> :eu189_guestid AND gm189_gm2.userid IS NOT NULL AND eu189_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu190_u.id FROM {user} eu190_u JOIN {user_enrolments} ej190_ue ON ej190_ue.userid = eu190_u.id JOIN {enrol} ej190_e ON (ej190_e.id = ej190_ue.enrolid AND ej190_e.courseid = :ej190_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu190_u.id LEFT JOIN {groups_members} gm190_gm2 ON (gm190_gm2.userid = eu190_u.id AND gm190_gm2.groupid = :gm190_1140) WHERE 1 = 1 AND ej190_ue.status = :ej190_active AND ej190_e.status = :ej190_enabled AND ej190_ue.timestart < :ej190_now1 AND (ej190_ue.timeend = 0 OR ej190_ue.timeend > :ej190_now2) AND eu190_u.deleted = 0 AND eu190_u.id <> :eu190_guestid AND gm190_gm2.userid IS NOT NULL AND eu190_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu191_u.id FROM {user} eu191_u JOIN {user_enrolments} ej191_ue ON ej191_ue.userid = eu191_u.id JOIN {enrol} ej191_e ON (ej191_e.id = ej191_ue.enrolid AND ej191_e.courseid = :ej191_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu191_u.id LEFT JOIN {groups_members} gm191_gm2 ON (gm191_gm2.userid = eu191_u.id AND gm191_gm2.groupid = :gm191_1146) WHERE 1 = 1 AND ej191_ue.status = :ej191_active AND ej191_e.status = :ej191_enabled AND ej191_ue.timestart < :ej191_now1 AND (ej191_ue.timeend = 0 OR ej191_ue.timeend > :ej191_now2) AND eu191_u.deleted = 0 AND eu191_u.id <> :eu191_guestid AND gm191_gm2.userid IS NOT NULL AND eu191_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu192_u.id FROM {user} eu192_u JOIN {user_enrolments} ej192_ue ON ej192_ue.userid = eu192_u.id JOIN {enrol} ej192_e ON (ej192_e.id = ej192_ue.enrolid AND ej192_e.courseid = :ej192_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu192_u.id LEFT JOIN {groups_members} gm192_gm2 ON (gm192_gm2.userid = eu192_u.id AND gm192_gm2.groupid = :gm192_1152) WHERE 1 = 1 AND ej192_ue.status = :ej192_active AND ej192_e.status = :ej192_enabled AND ej192_ue.timestart < :ej192_now1 AND (ej192_ue.timeend = 0 OR ej192_ue.timeend > :ej192_now2) AND eu192_u.deleted = 0 AND eu192_u.id <> :eu192_guestid AND gm192_gm2.userid IS NOT NULL AND eu192_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu193_u.id FROM {user} eu193_u JOIN {user_enrolments} ej193_ue ON ej193_ue.userid = eu193_u.id JOIN {enrol} ej193_e ON (ej193_e.id = ej193_ue.enrolid AND ej193_e.courseid = :ej193_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu193_u.id LEFT JOIN {groups_members} gm193_gm2 ON (gm193_gm2.userid = eu193_u.id AND gm193_gm2.groupid = :gm193_1158) WHERE 1 = 1 AND ej193_ue.status = :ej193_active AND ej193_e.status = :ej193_enabled AND ej193_ue.timestart < :ej193_now1 AND (ej193_ue.timeend = 0 OR ej193_ue.timeend > :ej193_now2) AND eu193_u.deleted = 0 AND eu193_u.id <> :eu193_guestid AND gm193_gm2.userid IS NOT NULL AND eu193_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu194_u.id FROM {user} eu194_u JOIN {user_enrolments} ej194_ue ON ej194_ue.userid = eu194_u.id JOIN {enrol} ej194_e ON (ej194_e.id = ej194_ue.enrolid AND ej194_e.courseid = :ej194_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu194_u.id LEFT JOIN {groups_members} gm194_gm2 ON (gm194_gm2.userid = eu194_u.id AND gm194_gm2.groupid = :gm194_1164) WHERE 1 = 1 AND ej194_ue.status = :ej194_active AND ej194_e.status = :ej194_enabled AND ej194_ue.timestart < :ej194_now1 AND (ej194_ue.timeend = 0 OR ej194_ue.timeend > :ej194_now2) AND eu194_u.deleted = 0 AND eu194_u.id <> :eu194_guestid AND gm194_gm2.userid IS NOT NULL AND eu194_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu195_u.id FROM {user} eu195_u JOIN {user_enrolments} ej195_ue ON ej195_ue.userid = eu195_u.id JOIN {enrol} ej195_e ON (ej195_e.id = ej195_ue.enrolid AND ej195_e.courseid = :ej195_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu195_u.id LEFT JOIN {groups_members} gm195_gm2 ON (gm195_gm2.userid = eu195_u.id AND gm195_gm2.groupid = :gm195_1170) WHERE 1 = 1 AND ej195_ue.status = :ej195_active AND ej195_e.status = :ej195_enabled AND ej195_ue.timestart < :ej195_now1 AND (ej195_ue.timeend = 0 OR ej195_ue.timeend > :ej195_now2) AND eu195_u.deleted = 0 AND eu195_u.id <> :eu195_guestid AND gm195_gm2.userid IS NOT NULL AND eu195_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu196_u.id FROM {user} eu196_u JOIN {user_enrolments} ej196_ue ON ej196_ue.userid = eu196_u.id JOIN {enrol} ej196_e ON (ej196_e.id = ej196_ue.enrolid AND ej196_e.courseid = :ej196_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu196_u.id LEFT JOIN {groups_members} gm196_gm2 ON (gm196_gm2.userid = eu196_u.id AND gm196_gm2.groupid = :gm196_1176) WHERE 1 = 1 AND ej196_ue.status = :ej196_active AND ej196_e.status = :ej196_enabled AND ej196_ue.timestart < :ej196_now1 AND (ej196_ue.timeend = 0 OR ej196_ue.timeend > :ej196_now2) AND eu196_u.deleted = 0 AND eu196_u.id <> :eu196_guestid AND gm196_gm2.userid IS NOT NULL AND eu196_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu197_u.id FROM {user} eu197_u JOIN {user_enrolments} ej197_ue ON ej197_ue.userid = eu197_u.id JOIN {enrol} ej197_e ON (ej197_e.id = ej197_ue.enrolid AND ej197_e.courseid = :ej197_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu197_u.id LEFT JOIN {groups_members} gm197_gm2 ON (gm197_gm2.userid = eu197_u.id AND gm197_gm2.groupid = :gm197_1182) WHERE 1 = 1 AND ej197_ue.status = :ej197_active AND ej197_e.status = :ej197_enabled AND ej197_ue.timestart < :ej197_now1 AND (ej197_ue.timeend = 0 OR ej197_ue.timeend > :ej197_now2) AND eu197_u.deleted = 0 AND eu197_u.id <> :eu197_guestid AND gm197_gm2.userid IS NOT NULL AND eu197_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu198_u.id FROM {user} eu198_u JOIN {user_enrolments} ej198_ue ON ej198_ue.userid = eu198_u.id JOIN {enrol} ej198_e ON (ej198_e.id = ej198_ue.enrolid AND ej198_e.courseid = :ej198_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu198_u.id LEFT JOIN {groups_members} gm198_gm2 ON (gm198_gm2.userid = eu198_u.id AND gm198_gm2.groupid = :gm198_1188) WHERE 1 = 1 AND ej198_ue.status = :ej198_active AND ej198_e.status = :ej198_enabled AND ej198_ue.timestart < :ej198_now1 AND (ej198_ue.timeend = 0 OR ej198_ue.timeend > :ej198_now2) AND eu198_u.deleted = 0 AND eu198_u.id <> :eu198_guestid AND gm198_gm2.userid IS NOT NULL AND eu198_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu199_u.id FROM {user} eu199_u JOIN {user_enrolments} ej199_ue ON ej199_ue.userid = eu199_u.id JOIN {enrol} ej199_e ON (ej199_e.id = ej199_ue.enrolid AND ej199_e.courseid = :ej199_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu199_u.id LEFT JOIN {groups_members} gm199_gm2 ON (gm199_gm2.userid = eu199_u.id AND gm199_gm2.groupid = :gm199_1194) WHERE 1 = 1 AND ej199_ue.status = :ej199_active AND ej199_e.status = :ej199_enabled AND ej199_ue.timestart < :ej199_now1 AND (ej199_ue.timeend = 0 OR ej199_ue.timeend > :ej199_now2) AND eu199_u.deleted = 0 AND eu199_u.id <> :eu199_guestid AND gm199_gm2.userid IS NOT NULL AND eu199_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu200_u.id FROM {user} eu200_u JOIN {user_enrolments} ej200_ue ON ej200_ue.userid = eu200_u.id JOIN {enrol} ej200_e ON (ej200_e.id = ej200_ue.enrolid AND ej200_e.courseid = :ej200_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu200_u.id LEFT JOIN {groups_members} gm200_gm2 ON (gm200_gm2.userid = eu200_u.id AND gm200_gm2.groupid = :gm200_1200) WHERE 1 = 1 AND ej200_ue.status = :ej200_active AND ej200_e.status = :ej200_enabled AND ej200_ue.timestart < :ej200_now1 AND (ej200_ue.timeend = 0 OR ej200_ue.timeend > :ej200_now2) AND eu200_u.deleted = 0 AND eu200_u.id <> :eu200_guestid AND gm200_gm2.userid IS NOT NULL AND eu200_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu201_u.id FROM {user} eu201_u JOIN {user_enrolments} ej201_ue ON ej201_ue.userid = eu201_u.id JOIN {enrol} ej201_e ON (ej201_e.id = ej201_ue.enrolid AND ej201_e.courseid = :ej201_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu201_u.id LEFT JOIN {groups_members} gm201_gm2 ON (gm201_gm2.userid = eu201_u.id AND gm201_gm2.groupid = :gm201_1206) WHERE 1 = 1 AND ej201_ue.status = :ej201_active AND ej201_e.status = :ej201_enabled AND ej201_ue.timestart < :ej201_now1 AND (ej201_ue.timeend = 0 OR ej201_ue.timeend > :ej201_now2) AND eu201_u.deleted = 0 AND eu201_u.id <> :eu201_guestid AND gm201_gm2.userid IS NOT NULL AND eu201_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu202_u.id FROM {user} eu202_u JOIN {user_enrolments} ej202_ue ON ej202_ue.userid = eu202_u.id JOIN {enrol} ej202_e ON (ej202_e.id = ej202_ue.enrolid AND ej202_e.courseid = :ej202_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu202_u.id LEFT JOIN {groups_members} gm202_gm2 ON (gm202_gm2.userid = eu202_u.id AND gm202_gm2.groupid = :gm202_1212) WHERE 1 = 1 AND ej202_ue.status = :ej202_active AND ej202_e.status = :ej202_enabled AND ej202_ue.timestart < :ej202_now1 AND (ej202_ue.timeend = 0 OR ej202_ue.timeend > :ej202_now2) AND eu202_u.deleted = 0 AND eu202_u.id <> :eu202_guestid AND gm202_gm2.userid IS NOT NULL AND eu202_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu203_u.id FROM {user} eu203_u JOIN {user_enrolments} ej203_ue ON ej203_ue.userid = eu203_u.id JOIN {enrol} ej203_e ON (ej203_e.id = ej203_ue.enrolid AND ej203_e.courseid = :ej203_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu203_u.id LEFT JOIN {groups_members} gm203_gm2 ON (gm203_gm2.userid = eu203_u.id AND gm203_gm2.groupid = :gm203_1218) WHERE 1 = 1 AND ej203_ue.status = :ej203_active AND ej203_e.status = :ej203_enabled AND ej203_ue.timestart < :ej203_now1 AND (ej203_ue.timeend = 0 OR ej203_ue.timeend > :ej203_now2) AND eu203_u.deleted = 0 AND eu203_u.id <> :eu203_guestid AND gm203_gm2.userid IS NOT NULL AND eu203_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu204_u.id FROM {user} eu204_u JOIN {user_enrolments} ej204_ue ON ej204_ue.userid = eu204_u.id JOIN {enrol} ej204_e ON (ej204_e.id = ej204_ue.enrolid AND ej204_e.courseid = :ej204_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu204_u.id LEFT JOIN {groups_members} gm204_gm2 ON (gm204_gm2.userid = eu204_u.id AND gm204_gm2.groupid = :gm204_1224) WHERE 1 = 1 AND ej204_ue.status = :ej204_active AND ej204_e.status = :ej204_enabled AND ej204_ue.timestart < :ej204_now1 AND (ej204_ue.timeend = 0 OR ej204_ue.timeend > :ej204_now2) AND eu204_u.deleted = 0 AND eu204_u.id <> :eu204_guestid AND gm204_gm2.userid IS NOT NULL AND eu204_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu205_u.id FROM {user} eu205_u JOIN {user_enrolments} ej205_ue ON ej205_ue.userid = eu205_u.id JOIN {enrol} ej205_e ON (ej205_e.id = ej205_ue.enrolid AND ej205_e.courseid = :ej205_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu205_u.id LEFT JOIN {groups_members} gm205_gm2 ON (gm205_gm2.userid = eu205_u.id AND gm205_gm2.groupid = :gm205_1230) WHERE 1 = 1 AND ej205_ue.status = :ej205_active AND ej205_e.status = :ej205_enabled AND ej205_ue.timestart < :ej205_now1 AND (ej205_ue.timeend = 0 OR ej205_ue.timeend > :ej205_now2) AND eu205_u.deleted = 0 AND eu205_u.id <> :eu205_guestid AND gm205_gm2.userid IS NOT NULL AND eu205_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu206_u.id FROM {user} eu206_u JOIN {user_enrolments} ej206_ue ON ej206_ue.userid = eu206_u.id JOIN {enrol} ej206_e ON (ej206_e.id = ej206_ue.enrolid AND ej206_e.courseid = :ej206_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu206_u.id LEFT JOIN {groups_members} gm206_gm2 ON (gm206_gm2.userid = eu206_u.id AND gm206_gm2.groupid = :gm206_1236) WHERE 1 = 1 AND ej206_ue.status = :ej206_active AND ej206_e.status = :ej206_enabled AND ej206_ue.timestart < :ej206_now1 AND (ej206_ue.timeend = 0 OR ej206_ue.timeend > :ej206_now2) AND eu206_u.deleted = 0 AND eu206_u.id <> :eu206_guestid AND gm206_gm2.userid IS NOT NULL AND eu206_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu207_u.id FROM {user} eu207_u JOIN {user_enrolments} ej207_ue ON ej207_ue.userid = eu207_u.id JOIN {enrol} ej207_e ON (ej207_e.id = ej207_ue.enrolid AND ej207_e.courseid = :ej207_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu207_u.id LEFT JOIN {groups_members} gm207_gm2 ON (gm207_gm2.userid = eu207_u.id AND gm207_gm2.groupid = :gm207_1242) WHERE 1 = 1 AND ej207_ue.status = :ej207_active AND ej207_e.status = :ej207_enabled AND ej207_ue.timestart < :ej207_now1 AND (ej207_ue.timeend = 0 OR ej207_ue.timeend > :ej207_now2) AND eu207_u.deleted = 0 AND eu207_u.id <> :eu207_guestid AND gm207_gm2.userid IS NOT NULL AND eu207_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu208_u.id FROM {user} eu208_u JOIN {user_enrolments} ej208_ue ON ej208_ue.userid = eu208_u.id JOIN {enrol} ej208_e ON (ej208_e.id = ej208_ue.enrolid AND ej208_e.courseid = :ej208_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu208_u.id LEFT JOIN {groups_members} gm208_gm2 ON (gm208_gm2.userid = eu208_u.id AND gm208_gm2.groupid = :gm208_1248) WHERE 1 = 1 AND ej208_ue.status = :ej208_active AND ej208_e.status = :ej208_enabled AND ej208_ue.timestart < :ej208_now1 AND (ej208_ue.timeend = 0 OR ej208_ue.timeend > :ej208_now2) AND eu208_u.deleted = 0 AND eu208_u.id <> :eu208_guestid AND gm208_gm2.userid IS NOT NULL AND eu208_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu209_u.id FROM {user} eu209_u JOIN {user_enrolments} ej209_ue ON ej209_ue.userid = eu209_u.id JOIN {enrol} ej209_e ON (ej209_e.id = ej209_ue.enrolid AND ej209_e.courseid = :ej209_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu209_u.id LEFT JOIN {groups_members} gm209_gm2 ON (gm209_gm2.userid = eu209_u.id AND gm209_gm2.groupid = :gm209_1254) WHERE 1 = 1 AND ej209_ue.status = :ej209_active AND ej209_e.status = :ej209_enabled AND ej209_ue.timestart < :ej209_now1 AND (ej209_ue.timeend = 0 OR ej209_ue.timeend > :ej209_now2) AND eu209_u.deleted = 0 AND eu209_u.id <> :eu209_guestid AND gm209_gm2.userid IS NOT NULL AND eu209_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu210_u.id FROM {user} eu210_u JOIN {user_enrolments} ej210_ue ON ej210_ue.userid = eu210_u.id JOIN {enrol} ej210_e ON (ej210_e.id = ej210_ue.enrolid AND ej210_e.courseid = :ej210_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu210_u.id LEFT JOIN {groups_members} gm210_gm2 ON (gm210_gm2.userid = eu210_u.id AND gm210_gm2.groupid = :gm210_1260) WHERE 1 = 1 AND ej210_ue.status = :ej210_active AND ej210_e.status = :ej210_enabled AND ej210_ue.timestart < :ej210_now1 AND (ej210_ue.timeend = 0 OR ej210_ue.timeend > :ej210_now2) AND eu210_u.deleted = 0 AND eu210_u.id <> :eu210_guestid AND gm210_gm2.userid IS NOT NULL AND eu210_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu211_u.id FROM {user} eu211_u JOIN {user_enrolments} ej211_ue ON ej211_ue.userid = eu211_u.id JOIN {enrol} ej211_e ON (ej211_e.id = ej211_ue.enrolid AND ej211_e.courseid = :ej211_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu211_u.id LEFT JOIN {groups_members} gm211_gm2 ON (gm211_gm2.userid = eu211_u.id AND gm211_gm2.groupid = :gm211_1266) WHERE 1 = 1 AND ej211_ue.status = :ej211_active AND ej211_e.status = :ej211_enabled AND ej211_ue.timestart < :ej211_now1 AND (ej211_ue.timeend = 0 OR ej211_ue.timeend > :ej211_now2) AND eu211_u.deleted = 0 AND eu211_u.id <> :eu211_guestid AND gm211_gm2.userid IS NOT NULL AND eu211_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu212_u.id FROM {user} eu212_u JOIN {user_enrolments} ej212_ue ON ej212_ue.userid = eu212_u.id JOIN {enrol} ej212_e ON (ej212_e.id = ej212_ue.enrolid AND ej212_e.courseid = :ej212_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu212_u.id LEFT JOIN {groups_members} gm212_gm2 ON (gm212_gm2.userid = eu212_u.id AND gm212_gm2.groupid = :gm212_1272) WHERE 1 = 1 AND ej212_ue.status = :ej212_active AND ej212_e.status = :ej212_enabled AND ej212_ue.timestart < :ej212_now1 AND (ej212_ue.timeend = 0 OR ej212_ue.timeend > :ej212_now2) AND eu212_u.deleted = 0 AND eu212_u.id <> :eu212_guestid AND gm212_gm2.userid IS NOT NULL AND eu212_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu213_u.id FROM {user} eu213_u JOIN {user_enrolments} ej213_ue ON ej213_ue.userid = eu213_u.id JOIN {enrol} ej213_e ON (ej213_e.id = ej213_ue.enrolid AND ej213_e.courseid = :ej213_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu213_u.id LEFT JOIN {groups_members} gm213_gm2 ON (gm213_gm2.userid = eu213_u.id AND gm213_gm2.groupid = :gm213_1278) WHERE 1 = 1 AND ej213_ue.status = :ej213_active AND ej213_e.status = :ej213_enabled AND ej213_ue.timestart < :ej213_now1 AND (ej213_ue.timeend = 0 OR ej213_ue.timeend > :ej213_now2) AND eu213_u.deleted = 0 AND eu213_u.id <> :eu213_guestid AND gm213_gm2.userid IS NOT NULL AND eu213_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu214_u.id FROM {user} eu214_u JOIN {user_enrolments} ej214_ue ON ej214_ue.userid = eu214_u.id JOIN {enrol} ej214_e ON (ej214_e.id = ej214_ue.enrolid AND ej214_e.courseid = :ej214_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu214_u.id LEFT JOIN {groups_members} gm214_gm2 ON (gm214_gm2.userid = eu214_u.id AND gm214_gm2.groupid = :gm214_1284) WHERE 1 = 1 AND ej214_ue.status = :ej214_active AND ej214_e.status = :ej214_enabled AND ej214_ue.timestart < :ej214_now1 AND (ej214_ue.timeend = 0 OR ej214_ue.timeend > :ej214_now2) AND eu214_u.deleted = 0 AND eu214_u.id <> :eu214_guestid AND gm214_gm2.userid IS NOT NULL AND eu214_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu215_u.id FROM {user} eu215_u JOIN {user_enrolments} ej215_ue ON ej215_ue.userid = eu215_u.id JOIN {enrol} ej215_e ON (ej215_e.id = ej215_ue.enrolid AND ej215_e.courseid = :ej215_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu215_u.id LEFT JOIN {groups_members} gm215_gm2 ON (gm215_gm2.userid = eu215_u.id AND gm215_gm2.groupid = :gm215_1290) WHERE 1 = 1 AND ej215_ue.status = :ej215_active AND ej215_e.status = :ej215_enabled AND ej215_ue.timestart < :ej215_now1 AND (ej215_ue.timeend = 0 OR ej215_ue.timeend > :ej215_now2) AND eu215_u.deleted = 0 AND eu215_u.id <> :eu215_guestid AND gm215_gm2.userid IS NOT NULL AND eu215_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu216_u.id FROM {user} eu216_u JOIN {user_enrolments} ej216_ue ON ej216_ue.userid = eu216_u.id JOIN {enrol} ej216_e ON (ej216_e.id = ej216_ue.enrolid AND ej216_e.courseid = :ej216_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu216_u.id LEFT JOIN {groups_members} gm216_gm2 ON (gm216_gm2.userid = eu216_u.id AND gm216_gm2.groupid = :gm216_1296) WHERE 1 = 1 AND ej216_ue.status = :ej216_active AND ej216_e.status = :ej216_enabled AND ej216_ue.timestart < :ej216_now1 AND (ej216_ue.timeend = 0 OR ej216_ue.timeend > :ej216_now2) AND eu216_u.deleted = 0 AND eu216_u.id <> :eu216_guestid AND gm216_gm2.userid IS NOT NULL AND eu216_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu217_u.id FROM {user} eu217_u JOIN {user_enrolments} ej217_ue ON ej217_ue.userid = eu217_u.id JOIN {enrol} ej217_e ON (ej217_e.id = ej217_ue.enrolid AND ej217_e.courseid = :ej217_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu217_u.id LEFT JOIN {groups_members} gm217_gm2 ON (gm217_gm2.userid = eu217_u.id AND gm217_gm2.groupid = :gm217_1302) WHERE 1 = 1 AND ej217_ue.status = :ej217_active AND ej217_e.status = :ej217_enabled AND ej217_ue.timestart < :ej217_now1 AND (ej217_ue.timeend = 0 OR ej217_ue.timeend > :ej217_now2) AND eu217_u.deleted = 0 AND eu217_u.id <> :eu217_guestid AND gm217_gm2.userid IS NOT NULL AND eu217_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu218_u.id FROM {user} eu218_u JOIN {user_enrolments} ej218_ue ON ej218_ue.userid = eu218_u.id JOIN {enrol} ej218_e ON (ej218_e.id = ej218_ue.enrolid AND ej218_e.courseid = :ej218_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu218_u.id LEFT JOIN {groups_members} gm218_gm2 ON (gm218_gm2.userid = eu218_u.id AND gm218_gm2.groupid = :gm218_1308) WHERE 1 = 1 AND ej218_ue.status = :ej218_active AND ej218_e.status = :ej218_enabled AND ej218_ue.timestart < :ej218_now1 AND (ej218_ue.timeend = 0 OR ej218_ue.timeend > :ej218_now2) AND eu218_u.deleted = 0 AND eu218_u.id <> :eu218_guestid AND gm218_gm2.userid IS NOT NULL AND eu218_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu219_u.id FROM {user} eu219_u JOIN {user_enrolments} ej219_ue ON ej219_ue.userid = eu219_u.id JOIN {enrol} ej219_e ON (ej219_e.id = ej219_ue.enrolid AND ej219_e.courseid = :ej219_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu219_u.id LEFT JOIN {groups_members} gm219_gm2 ON (gm219_gm2.userid = eu219_u.id AND gm219_gm2.groupid = :gm219_1314) WHERE 1 = 1 AND ej219_ue.status = :ej219_active AND ej219_e.status = :ej219_enabled AND ej219_ue.timestart < :ej219_now1 AND (ej219_ue.timeend = 0 OR ej219_ue.timeend > :ej219_now2) AND eu219_u.deleted = 0 AND eu219_u.id <> :eu219_guestid AND gm219_gm2.userid IS NOT NULL AND eu219_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu220_u.id FROM {user} eu220_u JOIN {user_enrolments} ej220_ue ON ej220_ue.userid = eu220_u.id JOIN {enrol} ej220_e ON (ej220_e.id = ej220_ue.enrolid AND ej220_e.courseid = :ej220_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu220_u.id LEFT JOIN {groups_members} gm220_gm2 ON (gm220_gm2.userid = eu220_u.id AND gm220_gm2.groupid = :gm220_1320) WHERE 1 = 1 AND ej220_ue.status = :ej220_active AND ej220_e.status = :ej220_enabled AND ej220_ue.timestart < :ej220_now1 AND (ej220_ue.timeend = 0 OR ej220_ue.timeend > :ej220_now2) AND eu220_u.deleted = 0 AND eu220_u.id <> :eu220_guestid AND gm220_gm2.userid IS NOT NULL AND eu220_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu221_u.id FROM {user} eu221_u JOIN {user_enrolments} ej221_ue ON ej221_ue.userid = eu221_u.id JOIN {enrol} ej221_e ON (ej221_e.id = ej221_ue.enrolid AND ej221_e.courseid = :ej221_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu221_u.id LEFT JOIN {groups_members} gm221_gm2 ON (gm221_gm2.userid = eu221_u.id AND gm221_gm2.groupid = :gm221_1326) WHERE 1 = 1 AND ej221_ue.status = :ej221_active AND ej221_e.status = :ej221_enabled AND ej221_ue.timestart < :ej221_now1 AND (ej221_ue.timeend = 0 OR ej221_ue.timeend > :ej221_now2) AND eu221_u.deleted = 0 AND eu221_u.id <> :eu221_guestid AND gm221_gm2.userid IS NOT NULL AND eu221_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu222_u.id FROM {user} eu222_u JOIN {user_enrolments} ej222_ue ON ej222_ue.userid = eu222_u.id JOIN {enrol} ej222_e ON (ej222_e.id = ej222_ue.enrolid AND ej222_e.courseid = :ej222_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu222_u.id LEFT JOIN {groups_members} gm222_gm2 ON (gm222_gm2.userid = eu222_u.id AND gm222_gm2.groupid = :gm222_1332) WHERE 1 = 1 AND ej222_ue.status = :ej222_active AND ej222_e.status = :ej222_enabled AND ej222_ue.timestart < :ej222_now1 AND (ej222_ue.timeend = 0 OR ej222_ue.timeend > :ej222_now2) AND eu222_u.deleted = 0 AND eu222_u.id <> :eu222_guestid AND gm222_gm2.userid IS NOT NULL AND eu222_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu223_u.id FROM {user} eu223_u JOIN {user_enrolments} ej223_ue ON ej223_ue.userid = eu223_u.id JOIN {enrol} ej223_e ON (ej223_e.id = ej223_ue.enrolid AND ej223_e.courseid = :ej223_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu223_u.id LEFT JOIN {groups_members} gm223_gm2 ON (gm223_gm2.userid = eu223_u.id AND gm223_gm2.groupid = :gm223_1338) WHERE 1 = 1 AND ej223_ue.status = :ej223_active AND ej223_e.status = :ej223_enabled AND ej223_ue.timestart < :ej223_now1 AND (ej223_ue.timeend = 0 OR ej223_ue.timeend > :ej223_now2) AND eu223_u.deleted = 0 AND eu223_u.id <> :eu223_guestid AND gm223_gm2.userid IS NOT NULL AND eu223_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu224_u.id FROM {user} eu224_u JOIN {user_enrolments} ej224_ue ON ej224_ue.userid = eu224_u.id JOIN {enrol} ej224_e ON (ej224_e.id = ej224_ue.enrolid AND ej224_e.courseid = :ej224_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu224_u.id LEFT JOIN {groups_members} gm224_gm2 ON (gm224_gm2.userid = eu224_u.id AND gm224_gm2.groupid = :gm224_1344) WHERE 1 = 1 AND ej224_ue.status = :ej224_active AND ej224_e.status = :ej224_enabled AND ej224_ue.timestart < :ej224_now1 AND (ej224_ue.timeend = 0 OR ej224_ue.timeend > :ej224_now2) AND eu224_u.deleted = 0 AND eu224_u.id <> :eu224_guestid AND gm224_gm2.userid IS NOT NULL AND eu224_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu225_u.id FROM {user} eu225_u JOIN {user_enrolments} ej225_ue ON ej225_ue.userid = eu225_u.id JOIN {enrol} ej225_e ON (ej225_e.id = ej225_ue.enrolid AND ej225_e.courseid = :ej225_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu225_u.id LEFT JOIN {groups_members} gm225_gm2 ON (gm225_gm2.userid = eu225_u.id AND gm225_gm2.groupid = :gm225_1350) WHERE 1 = 1 AND ej225_ue.status = :ej225_active AND ej225_e.status = :ej225_enabled AND ej225_ue.timestart < :ej225_now1 AND (ej225_ue.timeend = 0 OR ej225_ue.timeend > :ej225_now2) AND eu225_u.deleted = 0 AND eu225_u.id <> :eu225_guestid AND gm225_gm2.userid IS NOT NULL AND eu225_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu226_u.id FROM {user} eu226_u JOIN {user_enrolments} ej226_ue ON ej226_ue.userid = eu226_u.id JOIN {enrol} ej226_e ON (ej226_e.id = ej226_ue.enrolid AND ej226_e.courseid = :ej226_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu226_u.id LEFT JOIN {groups_members} gm226_gm2 ON (gm226_gm2.userid = eu226_u.id AND gm226_gm2.groupid = :gm226_1356) WHERE 1 = 1 AND ej226_ue.status = :ej226_active AND ej226_e.status = :ej226_enabled AND ej226_ue.timestart < :ej226_now1 AND (ej226_ue.timeend = 0 OR ej226_ue.timeend > :ej226_now2) AND eu226_u.deleted = 0 AND eu226_u.id <> :eu226_guestid AND gm226_gm2.userid IS NOT NULL AND eu226_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu227_u.id FROM {user} eu227_u JOIN {user_enrolments} ej227_ue ON ej227_ue.userid = eu227_u.id JOIN {enrol} ej227_e ON (ej227_e.id = ej227_ue.enrolid AND ej227_e.courseid = :ej227_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu227_u.id LEFT JOIN {groups_members} gm227_gm2 ON (gm227_gm2.userid = eu227_u.id AND gm227_gm2.groupid = :gm227_1362) WHERE 1 = 1 AND ej227_ue.status = :ej227_active AND ej227_e.status = :ej227_enabled AND ej227_ue.timestart < :ej227_now1 AND (ej227_ue.timeend = 0 OR ej227_ue.timeend > :ej227_now2) AND eu227_u.deleted = 0 AND eu227_u.id <> :eu227_guestid AND gm227_gm2.userid IS NOT NULL AND eu227_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu228_u.id FROM {user} eu228_u JOIN {user_enrolments} ej228_ue ON ej228_ue.userid = eu228_u.id JOIN {enrol} ej228_e ON (ej228_e.id = ej228_ue.enrolid AND ej228_e.courseid = :ej228_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu228_u.id LEFT JOIN {groups_members} gm228_gm2 ON (gm228_gm2.userid = eu228_u.id AND gm228_gm2.groupid = :gm228_1368) WHERE 1 = 1 AND ej228_ue.status = :ej228_active AND ej228_e.status = :ej228_enabled AND ej228_ue.timestart < :ej228_now1 AND (ej228_ue.timeend = 0 OR ej228_ue.timeend > :ej228_now2) AND eu228_u.deleted = 0 AND eu228_u.id <> :eu228_guestid AND gm228_gm2.userid IS NOT NULL AND eu228_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu229_u.id FROM {user} eu229_u JOIN {user_enrolments} ej229_ue ON ej229_ue.userid = eu229_u.id JOIN {enrol} ej229_e ON (ej229_e.id = ej229_ue.enrolid AND ej229_e.courseid = :ej229_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu229_u.id LEFT JOIN {groups_members} gm229_gm2 ON (gm229_gm2.userid = eu229_u.id AND gm229_gm2.groupid = :gm229_1374) WHERE 1 = 1 AND ej229_ue.status = :ej229_active AND ej229_e.status = :ej229_enabled AND ej229_ue.timestart < :ej229_now1 AND (ej229_ue.timeend = 0 OR ej229_ue.timeend > :ej229_now2) AND eu229_u.deleted = 0 AND eu229_u.id <> :eu229_guestid AND gm229_gm2.userid IS NOT NULL AND eu229_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu230_u.id FROM {user} eu230_u JOIN {user_enrolments} ej230_ue ON ej230_ue.userid = eu230_u.id JOIN {enrol} ej230_e ON (ej230_e.id = ej230_ue.enrolid AND ej230_e.courseid = :ej230_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu230_u.id LEFT JOIN {groups_members} gm230_gm2 ON (gm230_gm2.userid = eu230_u.id AND gm230_gm2.groupid = :gm230_1380) WHERE 1 = 1 AND ej230_ue.status = :ej230_active AND ej230_e.status = :ej230_enabled AND ej230_ue.timestart < :ej230_now1 AND (ej230_ue.timeend = 0 OR ej230_ue.timeend > :ej230_now2) AND eu230_u.deleted = 0 AND eu230_u.id <> :eu230_guestid AND gm230_gm2.userid IS NOT NULL AND eu230_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu231_u.id FROM {user} eu231_u JOIN {user_enrolments} ej231_ue ON ej231_ue.userid = eu231_u.id JOIN {enrol} ej231_e ON (ej231_e.id = ej231_ue.enrolid AND ej231_e.courseid = :ej231_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu231_u.id LEFT JOIN {groups_members} gm231_gm2 ON (gm231_gm2.userid = eu231_u.id AND gm231_gm2.groupid = :gm231_1386) WHERE 1 = 1 AND ej231_ue.status = :ej231_active AND ej231_e.status = :ej231_enabled AND ej231_ue.timestart < :ej231_now1 AND (ej231_ue.timeend = 0 OR ej231_ue.timeend > :ej231_now2) AND eu231_u.deleted = 0 AND eu231_u.id <> :eu231_guestid AND gm231_gm2.userid IS NOT NULL AND eu231_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu232_u.id FROM {user} eu232_u JOIN {user_enrolments} ej232_ue ON ej232_ue.userid = eu232_u.id JOIN {enrol} ej232_e ON (ej232_e.id = ej232_ue.enrolid AND ej232_e.courseid = :ej232_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu232_u.id LEFT JOIN {groups_members} gm232_gm2 ON (gm232_gm2.userid = eu232_u.id AND gm232_gm2.groupid = :gm232_1392) WHERE 1 = 1 AND ej232_ue.status = :ej232_active AND ej232_e.status = :ej232_enabled AND ej232_ue.timestart < :ej232_now1 AND (ej232_ue.timeend = 0 OR ej232_ue.timeend > :ej232_now2) AND eu232_u.deleted = 0 AND eu232_u.id <> :eu232_guestid AND gm232_gm2.userid IS NOT NULL AND eu232_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu233_u.id FROM {user} eu233_u JOIN {user_enrolments} ej233_ue ON ej233_ue.userid = eu233_u.id JOIN {enrol} ej233_e ON (ej233_e.id = ej233_ue.enrolid AND ej233_e.courseid = :ej233_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu233_u.id LEFT JOIN {groups_members} gm233_gm2 ON (gm233_gm2.userid = eu233_u.id AND gm233_gm2.groupid = :gm233_1398) WHERE 1 = 1 AND ej233_ue.status = :ej233_active AND ej233_e.status = :ej233_enabled AND ej233_ue.timestart < :ej233_now1 AND (ej233_ue.timeend = 0 OR ej233_ue.timeend > :ej233_now2) AND eu233_u.deleted = 0 AND eu233_u.id <> :eu233_guestid AND gm233_gm2.userid IS NOT NULL AND eu233_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu234_u.id FROM {user} eu234_u JOIN {user_enrolments} ej234_ue ON ej234_ue.userid = eu234_u.id JOIN {enrol} ej234_e ON (ej234_e.id = ej234_ue.enrolid AND ej234_e.courseid = :ej234_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu234_u.id LEFT JOIN {groups_members} gm234_gm2 ON (gm234_gm2.userid = eu234_u.id AND gm234_gm2.groupid = :gm234_1404) WHERE 1 = 1 AND ej234_ue.status = :ej234_active AND ej234_e.status = :ej234_enabled AND ej234_ue.timestart < :ej234_now1 AND (ej234_ue.timeend = 0 OR ej234_ue.timeend > :ej234_now2) AND eu234_u.deleted = 0 AND eu234_u.id <> :eu234_guestid AND gm234_gm2.userid IS NOT NULL AND eu234_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu235_u.id FROM {user} eu235_u JOIN {user_enrolments} ej235_ue ON ej235_ue.userid = eu235_u.id JOIN {enrol} ej235_e ON (ej235_e.id = ej235_ue.enrolid AND ej235_e.courseid = :ej235_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu235_u.id LEFT JOIN {groups_members} gm235_gm2 ON (gm235_gm2.userid = eu235_u.id AND gm235_gm2.groupid = :gm235_1410) WHERE 1 = 1 AND ej235_ue.status = :ej235_active AND ej235_e.status = :ej235_enabled AND ej235_ue.timestart < :ej235_now1 AND (ej235_ue.timeend = 0 OR ej235_ue.timeend > :ej235_now2) AND eu235_u.deleted = 0 AND eu235_u.id <> :eu235_guestid AND gm235_gm2.userid IS NOT NULL AND eu235_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu236_u.id FROM {user} eu236_u JOIN {user_enrolments} ej236_ue ON ej236_ue.userid = eu236_u.id JOIN {enrol} ej236_e ON (ej236_e.id = ej236_ue.enrolid AND ej236_e.courseid = :ej236_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu236_u.id LEFT JOIN {groups_members} gm236_gm2 ON (gm236_gm2.userid = eu236_u.id AND gm236_gm2.groupid = :gm236_1416) WHERE 1 = 1 AND ej236_ue.status = :ej236_active AND ej236_e.status = :ej236_enabled AND ej236_ue.timestart < :ej236_now1 AND (ej236_ue.timeend = 0 OR ej236_ue.timeend > :ej236_now2) AND eu236_u.deleted = 0 AND eu236_u.id <> :eu236_guestid AND gm236_gm2.userid IS NOT NULL AND eu236_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu237_u.id FROM {user} eu237_u JOIN {user_enrolments} ej237_ue ON ej237_ue.userid = eu237_u.id JOIN {enrol} ej237_e ON (ej237_e.id = ej237_ue.enrolid AND ej237_e.courseid = :ej237_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu237_u.id LEFT JOIN {groups_members} gm237_gm2 ON (gm237_gm2.userid = eu237_u.id AND gm237_gm2.groupid = :gm237_1422) WHERE 1 = 1 AND ej237_ue.status = :ej237_active AND ej237_e.status = :ej237_enabled AND ej237_ue.timestart < :ej237_now1 AND (ej237_ue.timeend = 0 OR ej237_ue.timeend > :ej237_now2) AND eu237_u.deleted = 0 AND eu237_u.id <> :eu237_guestid AND gm237_gm2.userid IS NOT NULL AND eu237_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu238_u.id FROM {user} eu238_u JOIN {user_enrolments} ej238_ue ON ej238_ue.userid = eu238_u.id JOIN {enrol} ej238_e ON (ej238_e.id = ej238_ue.enrolid AND ej238_e.courseid = :ej238_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu238_u.id LEFT JOIN {groups_members} gm238_gm2 ON (gm238_gm2.userid = eu238_u.id AND gm238_gm2.groupid = :gm238_1428) WHERE 1 = 1 AND ej238_ue.status = :ej238_active AND ej238_e.status = :ej238_enabled AND ej238_ue.timestart < :ej238_now1 AND (ej238_ue.timeend = 0 OR ej238_ue.timeend > :ej238_now2) AND eu238_u.deleted = 0 AND eu238_u.id <> :eu238_guestid AND gm238_gm2.userid IS NOT NULL AND eu238_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu239_u.id FROM {user} eu239_u JOIN {user_enrolments} ej239_ue ON ej239_ue.userid = eu239_u.id JOIN {enrol} ej239_e ON (ej239_e.id = ej239_ue.enrolid AND ej239_e.courseid = :ej239_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu239_u.id LEFT JOIN {groups_members} gm239_gm2 ON (gm239_gm2.userid = eu239_u.id AND gm239_gm2.groupid = :gm239_1434) WHERE 1 = 1 AND ej239_ue.status = :ej239_active AND ej239_e.status = :ej239_enabled AND ej239_ue.timestart < :ej239_now1 AND (ej239_ue.timeend = 0 OR ej239_ue.timeend > :ej239_now2) AND eu239_u.deleted = 0 AND eu239_u.id <> :eu239_guestid AND gm239_gm2.userid IS NOT NULL AND eu239_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu240_u.id FROM {user} eu240_u JOIN {user_enrolments} ej240_ue ON ej240_ue.userid = eu240_u.id JOIN {enrol} ej240_e ON (ej240_e.id = ej240_ue.enrolid AND ej240_e.courseid = :ej240_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu240_u.id LEFT JOIN {groups_members} gm240_gm2 ON (gm240_gm2.userid = eu240_u.id AND gm240_gm2.groupid = :gm240_1440) WHERE 1 = 1 AND ej240_ue.status = :ej240_active AND ej240_e.status = :ej240_enabled AND ej240_ue.timestart < :ej240_now1 AND (ej240_ue.timeend = 0 OR ej240_ue.timeend > :ej240_now2) AND eu240_u.deleted = 0 AND eu240_u.id <> :eu240_guestid AND gm240_gm2.userid IS NOT NULL AND eu240_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu241_u.id FROM {user} eu241_u JOIN {user_enrolments} ej241_ue ON ej241_ue.userid = eu241_u.id JOIN {enrol} ej241_e ON (ej241_e.id = ej241_ue.enrolid AND ej241_e.courseid = :ej241_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu241_u.id LEFT JOIN {groups_members} gm241_gm2 ON (gm241_gm2.userid = eu241_u.id AND gm241_gm2.groupid = :gm241_1446) WHERE 1 = 1 AND ej241_ue.status = :ej241_active AND ej241_e.status = :ej241_enabled AND ej241_ue.timestart < :ej241_now1 AND (ej241_ue.timeend = 0 OR ej241_ue.timeend > :ej241_now2) AND eu241_u.deleted = 0 AND eu241_u.id <> :eu241_guestid AND gm241_gm2.userid IS NOT NULL AND eu241_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu242_u.id FROM {user} eu242_u JOIN {user_enrolments} ej242_ue ON ej242_ue.userid = eu242_u.id JOIN {enrol} ej242_e ON (ej242_e.id = ej242_ue.enrolid AND ej242_e.courseid = :ej242_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu242_u.id LEFT JOIN {groups_members} gm242_gm2 ON (gm242_gm2.userid = eu242_u.id AND gm242_gm2.groupid = :gm242_1452) WHERE 1 = 1 AND ej242_ue.status = :ej242_active AND ej242_e.status = :ej242_enabled AND ej242_ue.timestart < :ej242_now1 AND (ej242_ue.timeend = 0 OR ej242_ue.timeend > :ej242_now2) AND eu242_u.deleted = 0 AND eu242_u.id <> :eu242_guestid AND gm242_gm2.userid IS NOT NULL AND eu242_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu243_u.id FROM {user} eu243_u JOIN {user_enrolments} ej243_ue ON ej243_ue.userid = eu243_u.id JOIN {enrol} ej243_e ON (ej243_e.id = ej243_ue.enrolid AND ej243_e.courseid = :ej243_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu243_u.id LEFT JOIN {groups_members} gm243_gm2 ON (gm243_gm2.userid = eu243_u.id AND gm243_gm2.groupid = :gm243_1458) WHERE 1 = 1 AND ej243_ue.status = :ej243_active AND ej243_e.status = :ej243_enabled AND ej243_ue.timestart < :ej243_now1 AND (ej243_ue.timeend = 0 OR ej243_ue.timeend > :ej243_now2) AND eu243_u.deleted = 0 AND eu243_u.id <> :eu243_guestid AND gm243_gm2.userid IS NOT NULL AND eu243_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu244_u.id FROM {user} eu244_u JOIN {user_enrolments} ej244_ue ON ej244_ue.userid = eu244_u.id JOIN {enrol} ej244_e ON (ej244_e.id = ej244_ue.enrolid AND ej244_e.courseid = :ej244_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu244_u.id LEFT JOIN {groups_members} gm244_gm2 ON (gm244_gm2.userid = eu244_u.id AND gm244_gm2.groupid = :gm244_1464) WHERE 1 = 1 AND ej244_ue.status = :ej244_active AND ej244_e.status = :ej244_enabled AND ej244_ue.timestart < :ej244_now1 AND (ej244_ue.timeend = 0 OR ej244_ue.timeend > :ej244_now2) AND eu244_u.deleted = 0 AND eu244_u.id <> :eu244_guestid AND gm244_gm2.userid IS NOT NULL AND eu244_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu245_u.id FROM {user} eu245_u JOIN {user_enrolments} ej245_ue ON ej245_ue.userid = eu245_u.id JOIN {enrol} ej245_e ON (ej245_e.id = ej245_ue.enrolid AND ej245_e.courseid = :ej245_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu245_u.id LEFT JOIN {groups_members} gm245_gm2 ON (gm245_gm2.userid = eu245_u.id AND gm245_gm2.groupid = :gm245_1470) WHERE 1 = 1 AND ej245_ue.status = :ej245_active AND ej245_e.status = :ej245_enabled AND ej245_ue.timestart < :ej245_now1 AND (ej245_ue.timeend = 0 OR ej245_ue.timeend > :ej245_now2) AND eu245_u.deleted = 0 AND eu245_u.id <> :eu245_guestid AND gm245_gm2.userid IS NOT NULL AND eu245_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu246_u.id FROM {user} eu246_u JOIN {user_enrolments} ej246_ue ON ej246_ue.userid = eu246_u.id JOIN {enrol} ej246_e ON (ej246_e.id = ej246_ue.enrolid AND ej246_e.courseid = :ej246_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu246_u.id LEFT JOIN {groups_members} gm246_gm2 ON (gm246_gm2.userid = eu246_u.id AND gm246_gm2.groupid = :gm246_1476) WHERE 1 = 1 AND ej246_ue.status = :ej246_active AND ej246_e.status = :ej246_enabled AND ej246_ue.timestart < :ej246_now1 AND (ej246_ue.timeend = 0 OR ej246_ue.timeend > :ej246_now2) AND eu246_u.deleted = 0 AND eu246_u.id <> :eu246_guestid AND gm246_gm2.userid IS NOT NULL AND eu246_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu247_u.id FROM {user} eu247_u JOIN {user_enrolments} ej247_ue ON ej247_ue.userid = eu247_u.id JOIN {enrol} ej247_e ON (ej247_e.id = ej247_ue.enrolid AND ej247_e.courseid = :ej247_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu247_u.id LEFT JOIN {groups_members} gm247_gm2 ON (gm247_gm2.userid = eu247_u.id AND gm247_gm2.groupid = :gm247_1482) WHERE 1 = 1 AND ej247_ue.status = :ej247_active AND ej247_e.status = :ej247_enabled AND ej247_ue.timestart < :ej247_now1 AND (ej247_ue.timeend = 0 OR ej247_ue.timeend > :ej247_now2) AND eu247_u.deleted = 0 AND eu247_u.id <> :eu247_guestid AND gm247_gm2.userid IS NOT NULL AND eu247_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu248_u.id FROM {user} eu248_u JOIN {user_enrolments} ej248_ue ON ej248_ue.userid = eu248_u.id JOIN {enrol} ej248_e ON (ej248_e.id = ej248_ue.enrolid AND ej248_e.courseid = :ej248_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu248_u.id LEFT JOIN {groups_members} gm248_gm2 ON (gm248_gm2.userid = eu248_u.id AND gm248_gm2.groupid = :gm248_1488) WHERE 1 = 1 AND ej248_ue.status = :ej248_active AND ej248_e.status = :ej248_enabled AND ej248_ue.timestart < :ej248_now1 AND (ej248_ue.timeend = 0 OR ej248_ue.timeend > :ej248_now2) AND eu248_u.deleted = 0 AND eu248_u.id <> :eu248_guestid AND gm248_gm2.userid IS NOT NULL AND eu248_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu249_u.id FROM {user} eu249_u JOIN {user_enrolments} ej249_ue ON ej249_ue.userid = eu249_u.id JOIN {enrol} ej249_e ON (ej249_e.id = ej249_ue.enrolid AND ej249_e.courseid = :ej249_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu249_u.id LEFT JOIN {groups_members} gm249_gm2 ON (gm249_gm2.userid = eu249_u.id AND gm249_gm2.groupid = :gm249_1494) WHERE 1 = 1 AND ej249_ue.status = :ej249_active AND ej249_e.status = :ej249_enabled AND ej249_ue.timestart < :ej249_now1 AND (ej249_ue.timeend = 0 OR ej249_ue.timeend > :ej249_now2) AND eu249_u.deleted = 0 AND eu249_u.id <> :eu249_guestid AND gm249_gm2.userid IS NOT NULL AND eu249_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu250_u.id FROM {user} eu250_u JOIN {user_enrolments} ej250_ue ON ej250_ue.userid = eu250_u.id JOIN {enrol} ej250_e ON (ej250_e.id = ej250_ue.enrolid AND ej250_e.courseid = :ej250_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu250_u.id LEFT JOIN {groups_members} gm250_gm2 ON (gm250_gm2.userid = eu250_u.id AND gm250_gm2.groupid = :gm250_1500) WHERE 1 = 1 AND ej250_ue.status = :ej250_active AND ej250_e.status = :ej250_enabled AND ej250_ue.timestart < :ej250_now1 AND (ej250_ue.timeend = 0 OR ej250_ue.timeend > :ej250_now2) AND eu250_u.deleted = 0 AND eu250_u.id <> :eu250_guestid AND gm250_gm2.userid IS NOT NULL AND eu250_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu251_u.id FROM {user} eu251_u JOIN {user_enrolments} ej251_ue ON ej251_ue.userid = eu251_u.id JOIN {enrol} ej251_e ON (ej251_e.id = ej251_ue.enrolid AND ej251_e.courseid = :ej251_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu251_u.id LEFT JOIN {groups_members} gm251_gm2 ON (gm251_gm2.userid = eu251_u.id AND gm251_gm2.groupid = :gm251_1506) WHERE 1 = 1 AND ej251_ue.status = :ej251_active AND ej251_e.status = :ej251_enabled AND ej251_ue.timestart < :ej251_now1 AND (ej251_ue.timeend = 0 OR ej251_ue.timeend > :ej251_now2) AND eu251_u.deleted = 0 AND eu251_u.id <> :eu251_guestid AND gm251_gm2.userid IS NOT NULL AND eu251_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu252_u.id FROM {user} eu252_u JOIN {user_enrolments} ej252_ue ON ej252_ue.userid = eu252_u.id JOIN {enrol} ej252_e ON (ej252_e.id = ej252_ue.enrolid AND ej252_e.courseid = :ej252_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu252_u.id LEFT JOIN {groups_members} gm252_gm2 ON (gm252_gm2.userid = eu252_u.id AND gm252_gm2.groupid = :gm252_1512) WHERE 1 = 1 AND ej252_ue.status = :ej252_active AND ej252_e.status = :ej252_enabled AND ej252_ue.timestart < :ej252_now1 AND (ej252_ue.timeend = 0 OR ej252_ue.timeend > :ej252_now2) AND eu252_u.deleted = 0 AND eu252_u.id <> :eu252_guestid AND gm252_gm2.userid IS NOT NULL AND eu252_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu253_u.id FROM {user} eu253_u JOIN {user_enrolments} ej253_ue ON ej253_ue.userid = eu253_u.id JOIN {enrol} ej253_e ON (ej253_e.id = ej253_ue.enrolid AND ej253_e.courseid = :ej253_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu253_u.id LEFT JOIN {groups_members} gm253_gm2 ON (gm253_gm2.userid = eu253_u.id AND gm253_gm2.groupid = :gm253_1518) WHERE 1 = 1 AND ej253_ue.status = :ej253_active AND ej253_e.status = :ej253_enabled AND ej253_ue.timestart < :ej253_now1 AND (ej253_ue.timeend = 0 OR ej253_ue.timeend > :ej253_now2) AND eu253_u.deleted = 0 AND eu253_u.id <> :eu253_guestid AND gm253_gm2.userid IS NOT NULL AND eu253_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu254_u.id FROM {user} eu254_u JOIN {user_enrolments} ej254_ue ON ej254_ue.userid = eu254_u.id JOIN {enrol} ej254_e ON (ej254_e.id = ej254_ue.enrolid AND ej254_e.courseid = :ej254_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu254_u.id LEFT JOIN {groups_members} gm254_gm2 ON (gm254_gm2.userid = eu254_u.id AND gm254_gm2.groupid = :gm254_1524) WHERE 1 = 1 AND ej254_ue.status = :ej254_active AND ej254_e.status = :ej254_enabled AND ej254_ue.timestart < :ej254_now1 AND (ej254_ue.timeend = 0 OR ej254_ue.timeend > :ej254_now2) AND eu254_u.deleted = 0 AND eu254_u.id <> :eu254_guestid AND gm254_gm2.userid IS NOT NULL AND eu254_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu255_u.id FROM {user} eu255_u JOIN {user_enrolments} ej255_ue ON ej255_ue.userid = eu255_u.id JOIN {enrol} ej255_e ON (ej255_e.id = ej255_ue.enrolid AND ej255_e.courseid = :ej255_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu255_u.id LEFT JOIN {groups_members} gm255_gm2 ON (gm255_gm2.userid = eu255_u.id AND gm255_gm2.groupid = :gm255_1530) WHERE 1 = 1 AND ej255_ue.status = :ej255_active AND ej255_e.status = :ej255_enabled AND ej255_ue.timestart < :ej255_now1 AND (ej255_ue.timeend = 0 OR ej255_ue.timeend > :ej255_now2) AND eu255_u.deleted = 0 AND eu255_u.id <> :eu255_guestid AND gm255_gm2.userid IS NOT NULL AND eu255_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu256_u.id FROM {user} eu256_u JOIN {user_enrolments} ej256_ue ON ej256_ue.userid = eu256_u.id JOIN {enrol} ej256_e ON (ej256_e.id = ej256_ue.enrolid AND ej256_e.courseid = :ej256_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu256_u.id LEFT JOIN {groups_members} gm256_gm2 ON (gm256_gm2.userid = eu256_u.id AND gm256_gm2.groupid = :gm256_1536) WHERE 1 = 1 AND ej256_ue.status = :ej256_active AND ej256_e.status = :ej256_enabled AND ej256_ue.timestart < :ej256_now1 AND (ej256_ue.timeend = 0 OR ej256_ue.timeend > :ej256_now2) AND eu256_u.deleted = 0 AND eu256_u.id <> :eu256_guestid AND gm256_gm2.userid IS NOT NULL AND eu256_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu257_u.id FROM {user} eu257_u JOIN {user_enrolments} ej257_ue ON ej257_ue.userid = eu257_u.id JOIN {enrol} ej257_e ON (ej257_e.id = ej257_ue.enrolid AND ej257_e.courseid = :ej257_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu257_u.id LEFT JOIN {groups_members} gm257_gm2 ON (gm257_gm2.userid = eu257_u.id AND gm257_gm2.groupid = :gm257_1542) WHERE 1 = 1 AND ej257_ue.status = :ej257_active AND ej257_e.status = :ej257_enabled AND ej257_ue.timestart < :ej257_now1 AND (ej257_ue.timeend = 0 OR ej257_ue.timeend > :ej257_now2) AND eu257_u.deleted = 0 AND eu257_u.id <> :eu257_guestid AND gm257_gm2.userid IS NOT NULL AND eu257_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu258_u.id FROM {user} eu258_u JOIN {user_enrolments} ej258_ue ON ej258_ue.userid = eu258_u.id JOIN {enrol} ej258_e ON (ej258_e.id = ej258_ue.enrolid AND ej258_e.courseid = :ej258_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu258_u.id LEFT JOIN {groups_members} gm258_gm2 ON (gm258_gm2.userid = eu258_u.id AND gm258_gm2.groupid = :gm258_1548) WHERE 1 = 1 AND ej258_ue.status = :ej258_active AND ej258_e.status = :ej258_enabled AND ej258_ue.timestart < :ej258_now1 AND (ej258_ue.timeend = 0 OR ej258_ue.timeend > :ej258_now2) AND eu258_u.deleted = 0 AND eu258_u.id <> :eu258_guestid AND gm258_gm2.userid IS NOT NULL AND eu258_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu259_u.id FROM {user} eu259_u JOIN {user_enrolments} ej259_ue ON ej259_ue.userid = eu259_u.id JOIN {enrol} ej259_e ON (ej259_e.id = ej259_ue.enrolid AND ej259_e.courseid = :ej259_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu259_u.id LEFT JOIN {groups_members} gm259_gm2 ON (gm259_gm2.userid = eu259_u.id AND gm259_gm2.groupid = :gm259_1554) WHERE 1 = 1 AND ej259_ue.status = :ej259_active AND ej259_e.status = :ej259_enabled AND ej259_ue.timestart < :ej259_now1 AND (ej259_ue.timeend = 0 OR ej259_ue.timeend > :ej259_now2) AND eu259_u.deleted = 0 AND eu259_u.id <> :eu259_guestid AND gm259_gm2.userid IS NOT NULL AND eu259_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu260_u.id FROM {user} eu260_u JOIN {user_enrolments} ej260_ue ON ej260_ue.userid = eu260_u.id JOIN {enrol} ej260_e ON (ej260_e.id = ej260_ue.enrolid AND ej260_e.courseid = :ej260_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu260_u.id LEFT JOIN {groups_members} gm260_gm2 ON (gm260_gm2.userid = eu260_u.id AND gm260_gm2.groupid = :gm260_1560) WHERE 1 = 1 AND ej260_ue.status = :ej260_active AND ej260_e.status = :ej260_enabled AND ej260_ue.timestart < :ej260_now1 AND (ej260_ue.timeend = 0 OR ej260_ue.timeend > :ej260_now2) AND eu260_u.deleted = 0 AND eu260_u.id <> :eu260_guestid AND gm260_gm2.userid IS NOT NULL AND eu260_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu261_u.id FROM {user} eu261_u JOIN {user_enrolments} ej261_ue ON ej261_ue.userid = eu261_u.id JOIN {enrol} ej261_e ON (ej261_e.id = ej261_ue.enrolid AND ej261_e.courseid = :ej261_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu261_u.id LEFT JOIN {groups_members} gm261_gm2 ON (gm261_gm2.userid = eu261_u.id AND gm261_gm2.groupid = :gm261_1566) WHERE 1 = 1 AND ej261_ue.status = :ej261_active AND ej261_e.status = :ej261_enabled AND ej261_ue.timestart < :ej261_now1 AND (ej261_ue.timeend = 0 OR ej261_ue.timeend > :ej261_now2) AND eu261_u.deleted = 0 AND eu261_u.id <> :eu261_guestid AND gm261_gm2.userid IS NOT NULL AND eu261_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu262_u.id FROM {user} eu262_u JOIN {user_enrolments} ej262_ue ON ej262_ue.userid = eu262_u.id JOIN {enrol} ej262_e ON (ej262_e.id = ej262_ue.enrolid AND ej262_e.courseid = :ej262_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu262_u.id LEFT JOIN {groups_members} gm262_gm2 ON (gm262_gm2.userid = eu262_u.id AND gm262_gm2.groupid = :gm262_1572) WHERE 1 = 1 AND ej262_ue.status = :ej262_active AND ej262_e.status = :ej262_enabled AND ej262_ue.timestart < :ej262_now1 AND (ej262_ue.timeend = 0 OR ej262_ue.timeend > :ej262_now2) AND eu262_u.deleted = 0 AND eu262_u.id <> :eu262_guestid AND gm262_gm2.userid IS NOT NULL AND eu262_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu263_u.id FROM {user} eu263_u JOIN {user_enrolments} ej263_ue ON ej263_ue.userid = eu263_u.id JOIN {enrol} ej263_e ON (ej263_e.id = ej263_ue.enrolid AND ej263_e.courseid = :ej263_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu263_u.id LEFT JOIN {groups_members} gm263_gm2 ON (gm263_gm2.userid = eu263_u.id AND gm263_gm2.groupid = :gm263_1578) WHERE 1 = 1 AND ej263_ue.status = :ej263_active AND ej263_e.status = :ej263_enabled AND ej263_ue.timestart < :ej263_now1 AND (ej263_ue.timeend = 0 OR ej263_ue.timeend > :ej263_now2) AND eu263_u.deleted = 0 AND eu263_u.id <> :eu263_guestid AND gm263_gm2.userid IS NOT NULL AND eu263_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu264_u.id FROM {user} eu264_u JOIN {user_enrolments} ej264_ue ON ej264_ue.userid = eu264_u.id JOIN {enrol} ej264_e ON (ej264_e.id = ej264_ue.enrolid AND ej264_e.courseid = :ej264_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu264_u.id LEFT JOIN {groups_members} gm264_gm2 ON (gm264_gm2.userid = eu264_u.id AND gm264_gm2.groupid = :gm264_1584) WHERE 1 = 1 AND ej264_ue.status = :ej264_active AND ej264_e.status = :ej264_enabled AND ej264_ue.timestart < :ej264_now1 AND (ej264_ue.timeend = 0 OR ej264_ue.timeend > :ej264_now2) AND eu264_u.deleted = 0 AND eu264_u.id <> :eu264_guestid AND gm264_gm2.userid IS NOT NULL AND eu264_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu265_u.id FROM {user} eu265_u JOIN {user_enrolments} ej265_ue ON ej265_ue.userid = eu265_u.id JOIN {enrol} ej265_e ON (ej265_e.id = ej265_ue.enrolid AND ej265_e.courseid = :ej265_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu265_u.id LEFT JOIN {groups_members} gm265_gm2 ON (gm265_gm2.userid = eu265_u.id AND gm265_gm2.groupid = :gm265_1590) WHERE 1 = 1 AND ej265_ue.status = :ej265_active AND ej265_e.status = :ej265_enabled AND ej265_ue.timestart < :ej265_now1 AND (ej265_ue.timeend = 0 OR ej265_ue.timeend > :ej265_now2) AND eu265_u.deleted = 0 AND eu265_u.id <> :eu265_guestid AND gm265_gm2.userid IS NOT NULL AND eu265_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu266_u.id FROM {user} eu266_u JOIN {user_enrolments} ej266_ue ON ej266_ue.userid = eu266_u.id JOIN {enrol} ej266_e ON (ej266_e.id = ej266_ue.enrolid AND ej266_e.courseid = :ej266_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu266_u.id LEFT JOIN {groups_members} gm266_gm2 ON (gm266_gm2.userid = eu266_u.id AND gm266_gm2.groupid = :gm266_1596) WHERE 1 = 1 AND ej266_ue.status = :ej266_active AND ej266_e.status = :ej266_enabled AND ej266_ue.timestart < :ej266_now1 AND (ej266_ue.timeend = 0 OR ej266_ue.timeend > :ej266_now2) AND eu266_u.deleted = 0 AND eu266_u.id <> :eu266_guestid AND gm266_gm2.userid IS NOT NULL AND eu266_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu267_u.id FROM {user} eu267_u JOIN {user_enrolments} ej267_ue ON ej267_ue.userid = eu267_u.id JOIN {enrol} ej267_e ON (ej267_e.id = ej267_ue.enrolid AND ej267_e.courseid = :ej267_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu267_u.id LEFT JOIN {groups_members} gm267_gm2 ON (gm267_gm2.userid = eu267_u.id AND gm267_gm2.groupid = :gm267_1602) WHERE 1 = 1 AND ej267_ue.status = :ej267_active AND ej267_e.status = :ej267_enabled AND ej267_ue.timestart < :ej267_now1 AND (ej267_ue.timeend = 0 OR ej267_ue.timeend > :ej267_now2) AND eu267_u.deleted = 0 AND eu267_u.id <> :eu267_guestid AND gm267_gm2.userid IS NOT NULL AND eu267_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu268_u.id FROM {user} eu268_u JOIN {user_enrolments} ej268_ue ON ej268_ue.userid = eu268_u.id JOIN {enrol} ej268_e ON (ej268_e.id = ej268_ue.enrolid AND ej268_e.courseid = :ej268_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu268_u.id LEFT JOIN {groups_members} gm268_gm2 ON (gm268_gm2.userid = eu268_u.id AND gm268_gm2.groupid = :gm268_1608) WHERE 1 = 1 AND ej268_ue.status = :ej268_active AND ej268_e.status = :ej268_enabled AND ej268_ue.timestart < :ej268_now1 AND (ej268_ue.timeend = 0 OR ej268_ue.timeend > :ej268_now2) AND eu268_u.deleted = 0 AND eu268_u.id <> :eu268_guestid AND gm268_gm2.userid IS NOT NULL AND eu268_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu269_u.id FROM {user} eu269_u JOIN {user_enrolments} ej269_ue ON ej269_ue.userid = eu269_u.id JOIN {enrol} ej269_e ON (ej269_e.id = ej269_ue.enrolid AND ej269_e.courseid = :ej269_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu269_u.id LEFT JOIN {groups_members} gm269_gm2 ON (gm269_gm2.userid = eu269_u.id AND gm269_gm2.groupid = :gm269_1614) WHERE 1 = 1 AND ej269_ue.status = :ej269_active AND ej269_e.status = :ej269_enabled AND ej269_ue.timestart < :ej269_now1 AND (ej269_ue.timeend = 0 OR ej269_ue.timeend > :ej269_now2) AND eu269_u.deleted = 0 AND eu269_u.id <> :eu269_guestid AND gm269_gm2.userid IS NOT NULL AND eu269_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu270_u.id FROM {user} eu270_u JOIN {user_enrolments} ej270_ue ON ej270_ue.userid = eu270_u.id JOIN {enrol} ej270_e ON (ej270_e.id = ej270_ue.enrolid AND ej270_e.courseid = :ej270_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu270_u.id LEFT JOIN {groups_members} gm270_gm2 ON (gm270_gm2.userid = eu270_u.id AND gm270_gm2.groupid = :gm270_1620) WHERE 1 = 1 AND ej270_ue.status = :ej270_active AND ej270_e.status = :ej270_enabled AND ej270_ue.timestart < :ej270_now1 AND (ej270_ue.timeend = 0 OR ej270_ue.timeend > :ej270_now2) AND eu270_u.deleted = 0 AND eu270_u.id <> :eu270_guestid AND gm270_gm2.userid IS NOT NULL AND eu270_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu271_u.id FROM {user} eu271_u JOIN {user_enrolments} ej271_ue ON ej271_ue.userid = eu271_u.id JOIN {enrol} ej271_e ON (ej271_e.id = ej271_ue.enrolid AND ej271_e.courseid = :ej271_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu271_u.id LEFT JOIN {groups_members} gm271_gm2 ON (gm271_gm2.userid = eu271_u.id AND gm271_gm2.groupid = :gm271_1626) WHERE 1 = 1 AND ej271_ue.status = :ej271_active AND ej271_e.status = :ej271_enabled AND ej271_ue.timestart < :ej271_now1 AND (ej271_ue.timeend = 0 OR ej271_ue.timeend > :ej271_now2) AND eu271_u.deleted = 0 AND eu271_u.id <> :eu271_guestid AND gm271_gm2.userid IS NOT NULL AND eu271_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu272_u.id FROM {user} eu272_u JOIN {user_enrolments} ej272_ue ON ej272_ue.userid = eu272_u.id JOIN {enrol} ej272_e ON (ej272_e.id = ej272_ue.enrolid AND ej272_e.courseid = :ej272_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu272_u.id LEFT JOIN {groups_members} gm272_gm2 ON (gm272_gm2.userid = eu272_u.id AND gm272_gm2.groupid = :gm272_1632) WHERE 1 = 1 AND ej272_ue.status = :ej272_active AND ej272_e.status = :ej272_enabled AND ej272_ue.timestart < :ej272_now1 AND (ej272_ue.timeend = 0 OR ej272_ue.timeend > :ej272_now2) AND eu272_u.deleted = 0 AND eu272_u.id <> :eu272_guestid AND gm272_gm2.userid IS NOT NULL AND eu272_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu273_u.id FROM {user} eu273_u JOIN {user_enrolments} ej273_ue ON ej273_ue.userid = eu273_u.id JOIN {enrol} ej273_e ON (ej273_e.id = ej273_ue.enrolid AND ej273_e.courseid = :ej273_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu273_u.id LEFT JOIN {groups_members} gm273_gm2 ON (gm273_gm2.userid = eu273_u.id AND gm273_gm2.groupid = :gm273_1638) WHERE 1 = 1 AND ej273_ue.status = :ej273_active AND ej273_e.status = :ej273_enabled AND ej273_ue.timestart < :ej273_now1 AND (ej273_ue.timeend = 0 OR ej273_ue.timeend > :ej273_now2) AND eu273_u.deleted = 0 AND eu273_u.id <> :eu273_guestid AND gm273_gm2.userid IS NOT NULL AND eu273_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu274_u.id FROM {user} eu274_u JOIN {user_enrolments} ej274_ue ON ej274_ue.userid = eu274_u.id JOIN {enrol} ej274_e ON (ej274_e.id = ej274_ue.enrolid AND ej274_e.courseid = :ej274_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu274_u.id LEFT JOIN {groups_members} gm274_gm2 ON (gm274_gm2.userid = eu274_u.id AND gm274_gm2.groupid = :gm274_1644) WHERE 1 = 1 AND ej274_ue.status = :ej274_active AND ej274_e.status = :ej274_enabled AND ej274_ue.timestart < :ej274_now1 AND (ej274_ue.timeend = 0 OR ej274_ue.timeend > :ej274_now2) AND eu274_u.deleted = 0 AND eu274_u.id <> :eu274_guestid AND gm274_gm2.userid IS NOT NULL AND eu274_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu275_u.id FROM {user} eu275_u JOIN {user_enrolments} ej275_ue ON ej275_ue.userid = eu275_u.id JOIN {enrol} ej275_e ON (ej275_e.id = ej275_ue.enrolid AND ej275_e.courseid = :ej275_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu275_u.id LEFT JOIN {groups_members} gm275_gm2 ON (gm275_gm2.userid = eu275_u.id AND gm275_gm2.groupid = :gm275_1650) WHERE 1 = 1 AND ej275_ue.status = :ej275_active AND ej275_e.status = :ej275_enabled AND ej275_ue.timestart < :ej275_now1 AND (ej275_ue.timeend = 0 OR ej275_ue.timeend > :ej275_now2) AND eu275_u.deleted = 0 AND eu275_u.id <> :eu275_guestid AND gm275_gm2.userid IS NOT NULL AND eu275_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu276_u.id FROM {user} eu276_u JOIN {user_enrolments} ej276_ue ON ej276_ue.userid = eu276_u.id JOIN {enrol} ej276_e ON (ej276_e.id = ej276_ue.enrolid AND ej276_e.courseid = :ej276_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu276_u.id LEFT JOIN {groups_members} gm276_gm2 ON (gm276_gm2.userid = eu276_u.id AND gm276_gm2.groupid = :gm276_1656) WHERE 1 = 1 AND ej276_ue.status = :ej276_active AND ej276_e.status = :ej276_enabled AND ej276_ue.timestart < :ej276_now1 AND (ej276_ue.timeend = 0 OR ej276_ue.timeend > :ej276_now2) AND eu276_u.deleted = 0 AND eu276_u.id <> :eu276_guestid AND gm276_gm2.userid IS NOT NULL AND eu276_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu277_u.id FROM {user} eu277_u JOIN {user_enrolments} ej277_ue ON ej277_ue.userid = eu277_u.id JOIN {enrol} ej277_e ON (ej277_e.id = ej277_ue.enrolid AND ej277_e.courseid = :ej277_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu277_u.id LEFT JOIN {groups_members} gm277_gm2 ON (gm277_gm2.userid = eu277_u.id AND gm277_gm2.groupid = :gm277_1662) WHERE 1 = 1 AND ej277_ue.status = :ej277_active AND ej277_e.status = :ej277_enabled AND ej277_ue.timestart < :ej277_now1 AND (ej277_ue.timeend = 0 OR ej277_ue.timeend > :ej277_now2) AND eu277_u.deleted = 0 AND eu277_u.id <> :eu277_guestid AND gm277_gm2.userid IS NOT NULL AND eu277_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu278_u.id FROM {user} eu278_u JOIN {user_enrolments} ej278_ue ON ej278_ue.userid = eu278_u.id JOIN {enrol} ej278_e ON (ej278_e.id = ej278_ue.enrolid AND ej278_e.courseid = :ej278_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu278_u.id LEFT JOIN {groups_members} gm278_gm2 ON (gm278_gm2.userid = eu278_u.id AND gm278_gm2.groupid = :gm278_1668) WHERE 1 = 1 AND ej278_ue.status = :ej278_active AND ej278_e.status = :ej278_enabled AND ej278_ue.timestart < :ej278_now1 AND (ej278_ue.timeend = 0 OR ej278_ue.timeend > :ej278_now2) AND eu278_u.deleted = 0 AND eu278_u.id <> :eu278_guestid AND gm278_gm2.userid IS NOT NULL AND eu278_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu279_u.id FROM {user} eu279_u JOIN {user_enrolments} ej279_ue ON ej279_ue.userid = eu279_u.id JOIN {enrol} ej279_e ON (ej279_e.id = ej279_ue.enrolid AND ej279_e.courseid = :ej279_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu279_u.id LEFT JOIN {groups_members} gm279_gm2 ON (gm279_gm2.userid = eu279_u.id AND gm279_gm2.groupid = :gm279_1674) WHERE 1 = 1 AND ej279_ue.status = :ej279_active AND ej279_e.status = :ej279_enabled AND ej279_ue.timestart < :ej279_now1 AND (ej279_ue.timeend = 0 OR ej279_ue.timeend > :ej279_now2) AND eu279_u.deleted = 0 AND eu279_u.id <> :eu279_guestid AND gm279_gm2.userid IS NOT NULL AND eu279_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu280_u.id FROM {user} eu280_u JOIN {user_enrolments} ej280_ue ON ej280_ue.userid = eu280_u.id JOIN {enrol} ej280_e ON (ej280_e.id = ej280_ue.enrolid AND ej280_e.courseid = :ej280_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu280_u.id LEFT JOIN {groups_members} gm280_gm2 ON (gm280_gm2.userid = eu280_u.id AND gm280_gm2.groupid = :gm280_1680) WHERE 1 = 1 AND ej280_ue.status = :ej280_active AND ej280_e.status = :ej280_enabled AND ej280_ue.timestart < :ej280_now1 AND (ej280_ue.timeend = 0 OR ej280_ue.timeend > :ej280_now2) AND eu280_u.deleted = 0 AND eu280_u.id <> :eu280_guestid AND gm280_gm2.userid IS NOT NULL AND eu280_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu281_u.id FROM {user} eu281_u JOIN {user_enrolments} ej281_ue ON ej281_ue.userid = eu281_u.id JOIN {enrol} ej281_e ON (ej281_e.id = ej281_ue.enrolid AND ej281_e.courseid = :ej281_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu281_u.id LEFT JOIN {groups_members} gm281_gm2 ON (gm281_gm2.userid = eu281_u.id AND gm281_gm2.groupid = :gm281_1686) WHERE 1 = 1 AND ej281_ue.status = :ej281_active AND ej281_e.status = :ej281_enabled AND ej281_ue.timestart < :ej281_now1 AND (ej281_ue.timeend = 0 OR ej281_ue.timeend > :ej281_now2) AND eu281_u.deleted = 0 AND eu281_u.id <> :eu281_guestid AND gm281_gm2.userid IS NOT NULL AND eu281_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu282_u.id FROM {user} eu282_u JOIN {user_enrolments} ej282_ue ON ej282_ue.userid = eu282_u.id JOIN {enrol} ej282_e ON (ej282_e.id = ej282_ue.enrolid AND ej282_e.courseid = :ej282_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu282_u.id LEFT JOIN {groups_members} gm282_gm2 ON (gm282_gm2.userid = eu282_u.id AND gm282_gm2.groupid = :gm282_1692) WHERE 1 = 1 AND ej282_ue.status = :ej282_active AND ej282_e.status = :ej282_enabled AND ej282_ue.timestart < :ej282_now1 AND (ej282_ue.timeend = 0 OR ej282_ue.timeend > :ej282_now2) AND eu282_u.deleted = 0 AND eu282_u.id <> :eu282_guestid AND gm282_gm2.userid IS NOT NULL AND eu282_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu283_u.id FROM {user} eu283_u JOIN {user_enrolments} ej283_ue ON ej283_ue.userid = eu283_u.id JOIN {enrol} ej283_e ON (ej283_e.id = ej283_ue.enrolid AND ej283_e.courseid = :ej283_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu283_u.id LEFT JOIN {groups_members} gm283_gm2 ON (gm283_gm2.userid = eu283_u.id AND gm283_gm2.groupid = :gm283_1698) WHERE 1 = 1 AND ej283_ue.status = :ej283_active AND ej283_e.status = :ej283_enabled AND ej283_ue.timestart < :ej283_now1 AND (ej283_ue.timeend = 0 OR ej283_ue.timeend > :ej283_now2) AND eu283_u.deleted = 0 AND eu283_u.id <> :eu283_guestid AND gm283_gm2.userid IS NOT NULL AND eu283_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu284_u.id FROM {user} eu284_u JOIN {user_enrolments} ej284_ue ON ej284_ue.userid = eu284_u.id JOIN {enrol} ej284_e ON (ej284_e.id = ej284_ue.enrolid AND ej284_e.courseid = :ej284_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu284_u.id LEFT JOIN {groups_members} gm284_gm2 ON (gm284_gm2.userid = eu284_u.id AND gm284_gm2.groupid = :gm284_1704) WHERE 1 = 1 AND ej284_ue.status = :ej284_active AND ej284_e.status = :ej284_enabled AND ej284_ue.timestart < :ej284_now1 AND (ej284_ue.timeend = 0 OR ej284_ue.timeend > :ej284_now2) AND eu284_u.deleted = 0 AND eu284_u.id <> :eu284_guestid AND gm284_gm2.userid IS NOT NULL AND eu284_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu285_u.id FROM {user} eu285_u JOIN {user_enrolments} ej285_ue ON ej285_ue.userid = eu285_u.id JOIN {enrol} ej285_e ON (ej285_e.id = ej285_ue.enrolid AND ej285_e.courseid = :ej285_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu285_u.id LEFT JOIN {groups_members} gm285_gm2 ON (gm285_gm2.userid = eu285_u.id AND gm285_gm2.groupid = :gm285_1710) WHERE 1 = 1 AND ej285_ue.status = :ej285_active AND ej285_e.status = :ej285_enabled AND ej285_ue.timestart < :ej285_now1 AND (ej285_ue.timeend = 0 OR ej285_ue.timeend > :ej285_now2) AND eu285_u.deleted = 0 AND eu285_u.id <> :eu285_guestid AND gm285_gm2.userid IS NOT NULL AND eu285_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu286_u.id FROM {user} eu286_u JOIN {user_enrolments} ej286_ue ON ej286_ue.userid = eu286_u.id JOIN {enrol} ej286_e ON (ej286_e.id = ej286_ue.enrolid AND ej286_e.courseid = :ej286_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu286_u.id LEFT JOIN {groups_members} gm286_gm2 ON (gm286_gm2.userid = eu286_u.id AND gm286_gm2.groupid = :gm286_1716) WHERE 1 = 1 AND ej286_ue.status = :ej286_active AND ej286_e.status = :ej286_enabled AND ej286_ue.timestart < :ej286_now1 AND (ej286_ue.timeend = 0 OR ej286_ue.timeend > :ej286_now2) AND eu286_u.deleted = 0 AND eu286_u.id <> :eu286_guestid AND gm286_gm2.userid IS NOT NULL AND eu286_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu287_u.id FROM {user} eu287_u JOIN {user_enrolments} ej287_ue ON ej287_ue.userid = eu287_u.id JOIN {enrol} ej287_e ON (ej287_e.id = ej287_ue.enrolid AND ej287_e.courseid = :ej287_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu287_u.id LEFT JOIN {groups_members} gm287_gm2 ON (gm287_gm2.userid = eu287_u.id AND gm287_gm2.groupid = :gm287_1722) WHERE 1 = 1 AND ej287_ue.status = :ej287_active AND ej287_e.status = :ej287_enabled AND ej287_ue.timestart < :ej287_now1 AND (ej287_ue.timeend = 0 OR ej287_ue.timeend > :ej287_now2) AND eu287_u.deleted = 0 AND eu287_u.id <> :eu287_guestid AND gm287_gm2.userid IS NOT NULL AND eu287_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu288_u.id FROM {user} eu288_u JOIN {user_enrolments} ej288_ue ON ej288_ue.userid = eu288_u.id JOIN {enrol} ej288_e ON (ej288_e.id = ej288_ue.enrolid AND ej288_e.courseid = :ej288_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu288_u.id LEFT JOIN {groups_members} gm288_gm2 ON (gm288_gm2.userid = eu288_u.id AND gm288_gm2.groupid = :gm288_1728) WHERE 1 = 1 AND ej288_ue.status = :ej288_active AND ej288_e.status = :ej288_enabled AND ej288_ue.timestart < :ej288_now1 AND (ej288_ue.timeend = 0 OR ej288_ue.timeend > :ej288_now2) AND eu288_u.deleted = 0 AND eu288_u.id <> :eu288_guestid AND gm288_gm2.userid IS NOT NULL AND eu288_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu289_u.id FROM {user} eu289_u JOIN {user_enrolments} ej289_ue ON ej289_ue.userid = eu289_u.id JOIN {enrol} ej289_e ON (ej289_e.id = ej289_ue.enrolid AND ej289_e.courseid = :ej289_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu289_u.id LEFT JOIN {groups_members} gm289_gm2 ON (gm289_gm2.userid = eu289_u.id AND gm289_gm2.groupid = :gm289_1734) WHERE 1 = 1 AND ej289_ue.status = :ej289_active AND ej289_e.status = :ej289_enabled AND ej289_ue.timestart < :ej289_now1 AND (ej289_ue.timeend = 0 OR ej289_ue.timeend > :ej289_now2) AND eu289_u.deleted = 0 AND eu289_u.id <> :eu289_guestid AND gm289_gm2.userid IS NOT NULL AND eu289_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu290_u.id FROM {user} eu290_u JOIN {user_enrolments} ej290_ue ON ej290_ue.userid = eu290_u.id JOIN {enrol} ej290_e ON (ej290_e.id = ej290_ue.enrolid AND ej290_e.courseid = :ej290_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu290_u.id LEFT JOIN {groups_members} gm290_gm2 ON (gm290_gm2.userid = eu290_u.id AND gm290_gm2.groupid = :gm290_1740) WHERE 1 = 1 AND ej290_ue.status = :ej290_active AND ej290_e.status = :ej290_enabled AND ej290_ue.timestart < :ej290_now1 AND (ej290_ue.timeend = 0 OR ej290_ue.timeend > :ej290_now2) AND eu290_u.deleted = 0 AND eu290_u.id <> :eu290_guestid AND gm290_gm2.userid IS NOT NULL AND eu290_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu291_u.id FROM {user} eu291_u JOIN {user_enrolments} ej291_ue ON ej291_ue.userid = eu291_u.id JOIN {enrol} ej291_e ON (ej291_e.id = ej291_ue.enrolid AND ej291_e.courseid = :ej291_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu291_u.id LEFT JOIN {groups_members} gm291_gm2 ON (gm291_gm2.userid = eu291_u.id AND gm291_gm2.groupid = :gm291_1746) WHERE 1 = 1 AND ej291_ue.status = :ej291_active AND ej291_e.status = :ej291_enabled AND ej291_ue.timestart < :ej291_now1 AND (ej291_ue.timeend = 0 OR ej291_ue.timeend > :ej291_now2) AND eu291_u.deleted = 0 AND eu291_u.id <> :eu291_guestid AND gm291_gm2.userid IS NOT NULL AND eu291_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu292_u.id FROM {user} eu292_u JOIN {user_enrolments} ej292_ue ON ej292_ue.userid = eu292_u.id JOIN {enrol} ej292_e ON (ej292_e.id = ej292_ue.enrolid AND ej292_e.courseid = :ej292_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu292_u.id LEFT JOIN {groups_members} gm292_gm2 ON (gm292_gm2.userid = eu292_u.id AND gm292_gm2.groupid = :gm292_1752) WHERE 1 = 1 AND ej292_ue.status = :ej292_active AND ej292_e.status = :ej292_enabled AND ej292_ue.timestart < :ej292_now1 AND (ej292_ue.timeend = 0 OR ej292_ue.timeend > :ej292_now2) AND eu292_u.deleted = 0 AND eu292_u.id <> :eu292_guestid AND gm292_gm2.userid IS NOT NULL AND eu292_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu293_u.id FROM {user} eu293_u JOIN {user_enrolments} ej293_ue ON ej293_ue.userid = eu293_u.id JOIN {enrol} ej293_e ON (ej293_e.id = ej293_ue.enrolid AND ej293_e.courseid = :ej293_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu293_u.id LEFT JOIN {groups_members} gm293_gm2 ON (gm293_gm2.userid = eu293_u.id AND gm293_gm2.groupid = :gm293_1758) WHERE 1 = 1 AND ej293_ue.status = :ej293_active AND ej293_e.status = :ej293_enabled AND ej293_ue.timestart < :ej293_now1 AND (ej293_ue.timeend = 0 OR ej293_ue.timeend > :ej293_now2) AND eu293_u.deleted = 0 AND eu293_u.id <> :eu293_guestid AND gm293_gm2.userid IS NOT NULL AND eu293_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu294_u.id FROM {user} eu294_u JOIN {user_enrolments} ej294_ue ON ej294_ue.userid = eu294_u.id JOIN {enrol} ej294_e ON (ej294_e.id = ej294_ue.enrolid AND ej294_e.courseid = :ej294_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu294_u.id LEFT JOIN {groups_members} gm294_gm2 ON (gm294_gm2.userid = eu294_u.id AND gm294_gm2.groupid = :gm294_1764) WHERE 1 = 1 AND ej294_ue.status = :ej294_active AND ej294_e.status = :ej294_enabled AND ej294_ue.timestart < :ej294_now1 AND (ej294_ue.timeend = 0 OR ej294_ue.timeend > :ej294_now2) AND eu294_u.deleted = 0 AND eu294_u.id <> :eu294_guestid AND gm294_gm2.userid IS NOT NULL AND eu294_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu295_u.id FROM {user} eu295_u JOIN {user_enrolments} ej295_ue ON ej295_ue.userid = eu295_u.id JOIN {enrol} ej295_e ON (ej295_e.id = ej295_ue.enrolid AND ej295_e.courseid = :ej295_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu295_u.id LEFT JOIN {groups_members} gm295_gm2 ON (gm295_gm2.userid = eu295_u.id AND gm295_gm2.groupid = :gm295_1770) WHERE 1 = 1 AND ej295_ue.status = :ej295_active AND ej295_e.status = :ej295_enabled AND ej295_ue.timestart < :ej295_now1 AND (ej295_ue.timeend = 0 OR ej295_ue.timeend > :ej295_now2) AND eu295_u.deleted = 0 AND eu295_u.id <> :eu295_guestid AND gm295_gm2.userid IS NOT NULL AND eu295_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu296_u.id FROM {user} eu296_u JOIN {user_enrolments} ej296_ue ON ej296_ue.userid = eu296_u.id JOIN {enrol} ej296_e ON (ej296_e.id = ej296_ue.enrolid AND ej296_e.courseid = :ej296_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu296_u.id LEFT JOIN {groups_members} gm296_gm2 ON (gm296_gm2.userid = eu296_u.id AND gm296_gm2.groupid = :gm296_1776) WHERE 1 = 1 AND ej296_ue.status = :ej296_active AND ej296_e.status = :ej296_enabled AND ej296_ue.timestart < :ej296_now1 AND (ej296_ue.timeend = 0 OR ej296_ue.timeend > :ej296_now2) AND eu296_u.deleted = 0 AND eu296_u.id <> :eu296_guestid AND gm296_gm2.userid IS NOT NULL AND eu296_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu297_u.id FROM {user} eu297_u JOIN {user_enrolments} ej297_ue ON ej297_ue.userid = eu297_u.id JOIN {enrol} ej297_e ON (ej297_e.id = ej297_ue.enrolid AND ej297_e.courseid = :ej297_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu297_u.id LEFT JOIN {groups_members} gm297_gm2 ON (gm297_gm2.userid = eu297_u.id AND gm297_gm2.groupid = :gm297_1782) WHERE 1 = 1 AND ej297_ue.status = :ej297_active AND ej297_e.status = :ej297_enabled AND ej297_ue.timestart < :ej297_now1 AND (ej297_ue.timeend = 0 OR ej297_ue.timeend > :ej297_now2) AND eu297_u.deleted = 0 AND eu297_u.id <> :eu297_guestid AND gm297_gm2.userid IS NOT NULL AND eu297_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu298_u.id FROM {user} eu298_u JOIN {user_enrolments} ej298_ue ON ej298_ue.userid = eu298_u.id JOIN {enrol} ej298_e ON (ej298_e.id = ej298_ue.enrolid AND ej298_e.courseid = :ej298_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu298_u.id LEFT JOIN {groups_members} gm298_gm2 ON (gm298_gm2.userid = eu298_u.id AND gm298_gm2.groupid = :gm298_1788) WHERE 1 = 1 AND ej298_ue.status = :ej298_active AND ej298_e.status = :ej298_enabled AND ej298_ue.timestart < :ej298_now1 AND (ej298_ue.timeend = 0 OR ej298_ue.timeend > :ej298_now2) AND eu298_u.deleted = 0 AND eu298_u.id <> :eu298_guestid AND gm298_gm2.userid IS NOT NULL AND eu298_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu299_u.id FROM {user} eu299_u JOIN {user_enrolments} ej299_ue ON ej299_ue.userid = eu299_u.id JOIN {enrol} ej299_e ON (ej299_e.id = ej299_ue.enrolid AND ej299_e.courseid = :ej299_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu299_u.id LEFT JOIN {groups_members} gm299_gm2 ON (gm299_gm2.userid = eu299_u.id AND gm299_gm2.groupid = :gm299_1794) WHERE 1 = 1 AND ej299_ue.status = :ej299_active AND ej299_e.status = :ej299_enabled AND ej299_ue.timestart < :ej299_now1 AND (ej299_ue.timeend = 0 OR ej299_ue.timeend > :ej299_now2) AND eu299_u.deleted = 0 AND eu299_u.id <> :eu299_guestid AND gm299_gm2.userid IS NOT NULL AND eu299_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu300_u.id FROM {user} eu300_u JOIN {user_enrolments} ej300_ue ON ej300_ue.userid = eu300_u.id JOIN {enrol} ej300_e ON (ej300_e.id = ej300_ue.enrolid AND ej300_e.courseid = :ej300_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu300_u.id LEFT JOIN {groups_members} gm300_gm2 ON (gm300_gm2.userid = eu300_u.id AND gm300_gm2.groupid = :gm300_1800) WHERE 1 = 1 AND ej300_ue.status = :ej300_active AND ej300_e.status = :ej300_enabled AND ej300_ue.timestart < :ej300_now1 AND (ej300_ue.timeend = 0 OR ej300_ue.timeend > :ej300_now2) AND eu300_u.deleted = 0 AND eu300_u.id <> :eu300_guestid AND gm300_gm2.userid IS NOT NULL AND eu300_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu301_u.id FROM {user} eu301_u JOIN {user_enrolments} ej301_ue ON ej301_ue.userid = eu301_u.id JOIN {enrol} ej301_e ON (ej301_e.id = ej301_ue.enrolid AND ej301_e.courseid = :ej301_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu301_u.id LEFT JOIN {groups_members} gm301_gm2 ON (gm301_gm2.userid = eu301_u.id AND gm301_gm2.groupid = :gm301_1806) WHERE 1 = 1 AND ej301_ue.status = :ej301_active AND ej301_e.status = :ej301_enabled AND ej301_ue.timestart < :ej301_now1 AND (ej301_ue.timeend = 0 OR ej301_ue.timeend > :ej301_now2) AND eu301_u.deleted = 0 AND eu301_u.id <> :eu301_guestid AND gm301_gm2.userid IS NOT NULL AND eu301_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu302_u.id FROM {user} eu302_u JOIN {user_enrolments} ej302_ue ON ej302_ue.userid = eu302_u.id JOIN {enrol} ej302_e ON (ej302_e.id = ej302_ue.enrolid AND ej302_e.courseid = :ej302_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu302_u.id LEFT JOIN {groups_members} gm302_gm2 ON (gm302_gm2.userid = eu302_u.id AND gm302_gm2.groupid = :gm302_1812) WHERE 1 = 1 AND ej302_ue.status = :ej302_active AND ej302_e.status = :ej302_enabled AND ej302_ue.timestart < :ej302_now1 AND (ej302_ue.timeend = 0 OR ej302_ue.timeend > :ej302_now2) AND eu302_u.deleted = 0 AND eu302_u.id <> :eu302_guestid AND gm302_gm2.userid IS NOT NULL AND eu302_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu303_u.id FROM {user} eu303_u JOIN {user_enrolments} ej303_ue ON ej303_ue.userid = eu303_u.id JOIN {enrol} ej303_e ON (ej303_e.id = ej303_ue.enrolid AND ej303_e.courseid = :ej303_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu303_u.id LEFT JOIN {groups_members} gm303_gm2 ON (gm303_gm2.userid = eu303_u.id AND gm303_gm2.groupid = :gm303_1818) WHERE 1 = 1 AND ej303_ue.status = :ej303_active AND ej303_e.status = :ej303_enabled AND ej303_ue.timestart < :ej303_now1 AND (ej303_ue.timeend = 0 OR ej303_ue.timeend > :ej303_now2) AND eu303_u.deleted = 0 AND eu303_u.id <> :eu303_guestid AND gm303_gm2.userid IS NOT NULL AND eu303_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu304_u.id FROM {user} eu304_u JOIN {user_enrolments} ej304_ue ON ej304_ue.userid = eu304_u.id JOIN {enrol} ej304_e ON (ej304_e.id = ej304_ue.enrolid AND ej304_e.courseid = :ej304_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu304_u.id LEFT JOIN {groups_members} gm304_gm2 ON (gm304_gm2.userid = eu304_u.id AND gm304_gm2.groupid = :gm304_1824) WHERE 1 = 1 AND ej304_ue.status = :ej304_active AND ej304_e.status = :ej304_enabled AND ej304_ue.timestart < :ej304_now1 AND (ej304_ue.timeend = 0 OR ej304_ue.timeend > :ej304_now2) AND eu304_u.deleted = 0 AND eu304_u.id <> :eu304_guestid AND gm304_gm2.userid IS NOT NULL AND eu304_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu305_u.id FROM {user} eu305_u JOIN {user_enrolments} ej305_ue ON ej305_ue.userid = eu305_u.id JOIN {enrol} ej305_e ON (ej305_e.id = ej305_ue.enrolid AND ej305_e.courseid = :ej305_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu305_u.id LEFT JOIN {groups_members} gm305_gm2 ON (gm305_gm2.userid = eu305_u.id AND gm305_gm2.groupid = :gm305_1830) WHERE 1 = 1 AND ej305_ue.status = :ej305_active AND ej305_e.status = :ej305_enabled AND ej305_ue.timestart < :ej305_now1 AND (ej305_ue.timeend = 0 OR ej305_ue.timeend > :ej305_now2) AND eu305_u.deleted = 0 AND eu305_u.id <> :eu305_guestid AND gm305_gm2.userid IS NOT NULL AND eu305_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu306_u.id FROM {user} eu306_u JOIN {user_enrolments} ej306_ue ON ej306_ue.userid = eu306_u.id JOIN {enrol} ej306_e ON (ej306_e.id = ej306_ue.enrolid AND ej306_e.courseid = :ej306_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu306_u.id LEFT JOIN {groups_members} gm306_gm2 ON (gm306_gm2.userid = eu306_u.id AND gm306_gm2.groupid = :gm306_1836) WHERE 1 = 1 AND ej306_ue.status = :ej306_active AND ej306_e.status = :ej306_enabled AND ej306_ue.timestart < :ej306_now1 AND (ej306_ue.timeend = 0 OR ej306_ue.timeend > :ej306_now2) AND eu306_u.deleted = 0 AND eu306_u.id <> :eu306_guestid AND gm306_gm2.userid IS NOT NULL AND eu306_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu307_u.id FROM {user} eu307_u JOIN {user_enrolments} ej307_ue ON ej307_ue.userid = eu307_u.id JOIN {enrol} ej307_e ON (ej307_e.id = ej307_ue.enrolid AND ej307_e.courseid = :ej307_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu307_u.id LEFT JOIN {groups_members} gm307_gm2 ON (gm307_gm2.userid = eu307_u.id AND gm307_gm2.groupid = :gm307_1842) WHERE 1 = 1 AND ej307_ue.status = :ej307_active AND ej307_e.status = :ej307_enabled AND ej307_ue.timestart < :ej307_now1 AND (ej307_ue.timeend = 0 OR ej307_ue.timeend > :ej307_now2) AND eu307_u.deleted = 0 AND eu307_u.id <> :eu307_guestid AND gm307_gm2.userid IS NOT NULL AND eu307_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu308_u.id FROM {user} eu308_u JOIN {user_enrolments} ej308_ue ON ej308_ue.userid = eu308_u.id JOIN {enrol} ej308_e ON (ej308_e.id = ej308_ue.enrolid AND ej308_e.courseid = :ej308_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu308_u.id LEFT JOIN {groups_members} gm308_gm2 ON (gm308_gm2.userid = eu308_u.id AND gm308_gm2.groupid = :gm308_1848) WHERE 1 = 1 AND ej308_ue.status = :ej308_active AND ej308_e.status = :ej308_enabled AND ej308_ue.timestart < :ej308_now1 AND (ej308_ue.timeend = 0 OR ej308_ue.timeend > :ej308_now2) AND eu308_u.deleted = 0 AND eu308_u.id <> :eu308_guestid AND gm308_gm2.userid IS NOT NULL AND eu308_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu309_u.id FROM {user} eu309_u JOIN {user_enrolments} ej309_ue ON ej309_ue.userid = eu309_u.id JOIN {enrol} ej309_e ON (ej309_e.id = ej309_ue.enrolid AND ej309_e.courseid = :ej309_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu309_u.id LEFT JOIN {groups_members} gm309_gm2 ON (gm309_gm2.userid = eu309_u.id AND gm309_gm2.groupid = :gm309_1854) WHERE 1 = 1 AND ej309_ue.status = :ej309_active AND ej309_e.status = :ej309_enabled AND ej309_ue.timestart < :ej309_now1 AND (ej309_ue.timeend = 0 OR ej309_ue.timeend > :ej309_now2) AND eu309_u.deleted = 0 AND eu309_u.id <> :eu309_guestid AND gm309_gm2.userid IS NOT NULL AND eu309_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu310_u.id FROM {user} eu310_u JOIN {user_enrolments} ej310_ue ON ej310_ue.userid = eu310_u.id JOIN {enrol} ej310_e ON (ej310_e.id = ej310_ue.enrolid AND ej310_e.courseid = :ej310_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu310_u.id LEFT JOIN {groups_members} gm310_gm2 ON (gm310_gm2.userid = eu310_u.id AND gm310_gm2.groupid = :gm310_1860) WHERE 1 = 1 AND ej310_ue.status = :ej310_active AND ej310_e.status = :ej310_enabled AND ej310_ue.timestart < :ej310_now1 AND (ej310_ue.timeend = 0 OR ej310_ue.timeend > :ej310_now2) AND eu310_u.deleted = 0 AND eu310_u.id <> :eu310_guestid AND gm310_gm2.userid IS NOT NULL AND eu310_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu311_u.id FROM {user} eu311_u JOIN {user_enrolments} ej311_ue ON ej311_ue.userid = eu311_u.id JOIN {enrol} ej311_e ON (ej311_e.id = ej311_ue.enrolid AND ej311_e.courseid = :ej311_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu311_u.id LEFT JOIN {groups_members} gm311_gm2 ON (gm311_gm2.userid = eu311_u.id AND gm311_gm2.groupid = :gm311_1866) WHERE 1 = 1 AND ej311_ue.status = :ej311_active AND ej311_e.status = :ej311_enabled AND ej311_ue.timestart < :ej311_now1 AND (ej311_ue.timeend = 0 OR ej311_ue.timeend > :ej311_now2) AND eu311_u.deleted = 0 AND eu311_u.id <> :eu311_guestid AND gm311_gm2.userid IS NOT NULL AND eu311_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu312_u.id FROM {user} eu312_u JOIN {user_enrolments} ej312_ue ON ej312_ue.userid = eu312_u.id JOIN {enrol} ej312_e ON (ej312_e.id = ej312_ue.enrolid AND ej312_e.courseid = :ej312_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu312_u.id LEFT JOIN {groups_members} gm312_gm2 ON (gm312_gm2.userid = eu312_u.id AND gm312_gm2.groupid = :gm312_1872) WHERE 1 = 1 AND ej312_ue.status = :ej312_active AND ej312_e.status = :ej312_enabled AND ej312_ue.timestart < :ej312_now1 AND (ej312_ue.timeend = 0 OR ej312_ue.timeend > :ej312_now2) AND eu312_u.deleted = 0 AND eu312_u.id <> :eu312_guestid AND gm312_gm2.userid IS NOT NULL AND eu312_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu313_u.id FROM {user} eu313_u JOIN {user_enrolments} ej313_ue ON ej313_ue.userid = eu313_u.id JOIN {enrol} ej313_e ON (ej313_e.id = ej313_ue.enrolid AND ej313_e.courseid = :ej313_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu313_u.id LEFT JOIN {groups_members} gm313_gm2 ON (gm313_gm2.userid = eu313_u.id AND gm313_gm2.groupid = :gm313_1878) WHERE 1 = 1 AND ej313_ue.status = :ej313_active AND ej313_e.status = :ej313_enabled AND ej313_ue.timestart < :ej313_now1 AND (ej313_ue.timeend = 0 OR ej313_ue.timeend > :ej313_now2) AND eu313_u.deleted = 0 AND eu313_u.id <> :eu313_guestid AND gm313_gm2.userid IS NOT NULL AND eu313_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu314_u.id FROM {user} eu314_u JOIN {user_enrolments} ej314_ue ON ej314_ue.userid = eu314_u.id JOIN {enrol} ej314_e ON (ej314_e.id = ej314_ue.enrolid AND ej314_e.courseid = :ej314_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu314_u.id LEFT JOIN {groups_members} gm314_gm2 ON (gm314_gm2.userid = eu314_u.id AND gm314_gm2.groupid = :gm314_1884) WHERE 1 = 1 AND ej314_ue.status = :ej314_active AND ej314_e.status = :ej314_enabled AND ej314_ue.timestart < :ej314_now1 AND (ej314_ue.timeend = 0 OR ej314_ue.timeend > :ej314_now2) AND eu314_u.deleted = 0 AND eu314_u.id <> :eu314_guestid AND gm314_gm2.userid IS NOT NULL AND eu314_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu315_u.id FROM {user} eu315_u JOIN {user_enrolments} ej315_ue ON ej315_ue.userid = eu315_u.id JOIN {enrol} ej315_e ON (ej315_e.id = ej315_ue.enrolid AND ej315_e.courseid = :ej315_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu315_u.id LEFT JOIN {groups_members} gm315_gm2 ON (gm315_gm2.userid = eu315_u.id AND gm315_gm2.groupid = :gm315_1890) WHERE 1 = 1 AND ej315_ue.status = :ej315_active AND ej315_e.status = :ej315_enabled AND ej315_ue.timestart < :ej315_now1 AND (ej315_ue.timeend = 0 OR ej315_ue.timeend > :ej315_now2) AND eu315_u.deleted = 0 AND eu315_u.id <> :eu315_guestid AND gm315_gm2.userid IS NOT NULL AND eu315_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu316_u.id FROM {user} eu316_u JOIN {user_enrolments} ej316_ue ON ej316_ue.userid = eu316_u.id JOIN {enrol} ej316_e ON (ej316_e.id = ej316_ue.enrolid AND ej316_e.courseid = :ej316_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu316_u.id LEFT JOIN {groups_members} gm316_gm2 ON (gm316_gm2.userid = eu316_u.id AND gm316_gm2.groupid = :gm316_1896) WHERE 1 = 1 AND ej316_ue.status = :ej316_active AND ej316_e.status = :ej316_enabled AND ej316_ue.timestart < :ej316_now1 AND (ej316_ue.timeend = 0 OR ej316_ue.timeend > :ej316_now2) AND eu316_u.deleted = 0 AND eu316_u.id <> :eu316_guestid AND gm316_gm2.userid IS NOT NULL AND eu316_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu317_u.id FROM {user} eu317_u JOIN {user_enrolments} ej317_ue ON ej317_ue.userid = eu317_u.id JOIN {enrol} ej317_e ON (ej317_e.id = ej317_ue.enrolid AND ej317_e.courseid = :ej317_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu317_u.id LEFT JOIN {groups_members} gm317_gm2 ON (gm317_gm2.userid = eu317_u.id AND gm317_gm2.groupid = :gm317_1902) WHERE 1 = 1 AND ej317_ue.status = :ej317_active AND ej317_e.status = :ej317_enabled AND ej317_ue.timestart < :ej317_now1 AND (ej317_ue.timeend = 0 OR ej317_ue.timeend > :ej317_now2) AND eu317_u.deleted = 0 AND eu317_u.id <> :eu317_guestid AND gm317_gm2.userid IS NOT NULL AND eu317_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu318_u.id FROM {user} eu318_u JOIN {user_enrolments} ej318_ue ON ej318_ue.userid = eu318_u.id JOIN {enrol} ej318_e ON (ej318_e.id = ej318_ue.enrolid AND ej318_e.courseid = :ej318_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu318_u.id LEFT JOIN {groups_members} gm318_gm2 ON (gm318_gm2.userid = eu318_u.id AND gm318_gm2.groupid = :gm318_1908) WHERE 1 = 1 AND ej318_ue.status = :ej318_active AND ej318_e.status = :ej318_enabled AND ej318_ue.timestart < :ej318_now1 AND (ej318_ue.timeend = 0 OR ej318_ue.timeend > :ej318_now2) AND eu318_u.deleted = 0 AND eu318_u.id <> :eu318_guestid AND gm318_gm2.userid IS NOT NULL AND eu318_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu319_u.id FROM {user} eu319_u JOIN {user_enrolments} ej319_ue ON ej319_ue.userid = eu319_u.id JOIN {enrol} ej319_e ON (ej319_e.id = ej319_ue.enrolid AND ej319_e.courseid = :ej319_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu319_u.id LEFT JOIN {groups_members} gm319_gm2 ON (gm319_gm2.userid = eu319_u.id AND gm319_gm2.groupid = :gm319_1914) WHERE 1 = 1 AND ej319_ue.status = :ej319_active AND ej319_e.status = :ej319_enabled AND ej319_ue.timestart < :ej319_now1 AND (ej319_ue.timeend = 0 OR ej319_ue.timeend > :ej319_now2) AND eu319_u.deleted = 0 AND eu319_u.id <> :eu319_guestid AND gm319_gm2.userid IS NOT NULL AND eu319_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu320_u.id FROM {user} eu320_u JOIN {user_enrolments} ej320_ue ON ej320_ue.userid = eu320_u.id JOIN {enrol} ej320_e ON (ej320_e.id = ej320_ue.enrolid AND ej320_e.courseid = :ej320_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu320_u.id LEFT JOIN {groups_members} gm320_gm2 ON (gm320_gm2.userid = eu320_u.id AND gm320_gm2.groupid = :gm320_1920) WHERE 1 = 1 AND ej320_ue.status = :ej320_active AND ej320_e.status = :ej320_enabled AND ej320_ue.timestart < :ej320_now1 AND (ej320_ue.timeend = 0 OR ej320_ue.timeend > :ej320_now2) AND eu320_u.deleted = 0 AND eu320_u.id <> :eu320_guestid AND gm320_gm2.userid IS NOT NULL AND eu320_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu321_u.id FROM {user} eu321_u JOIN {user_enrolments} ej321_ue ON ej321_ue.userid = eu321_u.id JOIN {enrol} ej321_e ON (ej321_e.id = ej321_ue.enrolid AND ej321_e.courseid = :ej321_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu321_u.id LEFT JOIN {groups_members} gm321_gm2 ON (gm321_gm2.userid = eu321_u.id AND gm321_gm2.groupid = :gm321_1926) WHERE 1 = 1 AND ej321_ue.status = :ej321_active AND ej321_e.status = :ej321_enabled AND ej321_ue.timestart < :ej321_now1 AND (ej321_ue.timeend = 0 OR ej321_ue.timeend > :ej321_now2) AND eu321_u.deleted = 0 AND eu321_u.id <> :eu321_guestid AND gm321_gm2.userid IS NOT NULL AND eu321_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu322_u.id FROM {user} eu322_u JOIN {user_enrolments} ej322_ue ON ej322_ue.userid = eu322_u.id JOIN {enrol} ej322_e ON (ej322_e.id = ej322_ue.enrolid AND ej322_e.courseid = :ej322_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu322_u.id LEFT JOIN {groups_members} gm322_gm2 ON (gm322_gm2.userid = eu322_u.id AND gm322_gm2.groupid = :gm322_1932) WHERE 1 = 1 AND ej322_ue.status = :ej322_active AND ej322_e.status = :ej322_enabled AND ej322_ue.timestart < :ej322_now1 AND (ej322_ue.timeend = 0 OR ej322_ue.timeend > :ej322_now2) AND eu322_u.deleted = 0 AND eu322_u.id <> :eu322_guestid AND gm322_gm2.userid IS NOT NULL AND eu322_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu323_u.id FROM {user} eu323_u JOIN {user_enrolments} ej323_ue ON ej323_ue.userid = eu323_u.id JOIN {enrol} ej323_e ON (ej323_e.id = ej323_ue.enrolid AND ej323_e.courseid = :ej323_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu323_u.id LEFT JOIN {groups_members} gm323_gm2 ON (gm323_gm2.userid = eu323_u.id AND gm323_gm2.groupid = :gm323_1938) WHERE 1 = 1 AND ej323_ue.status = :ej323_active AND ej323_e.status = :ej323_enabled AND ej323_ue.timestart < :ej323_now1 AND (ej323_ue.timeend = 0 OR ej323_ue.timeend > :ej323_now2) AND eu323_u.deleted = 0 AND eu323_u.id <> :eu323_guestid AND gm323_gm2.userid IS NOT NULL AND eu323_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu324_u.id FROM {user} eu324_u JOIN {user_enrolments} ej324_ue ON ej324_ue.userid = eu324_u.id JOIN {enrol} ej324_e ON (ej324_e.id = ej324_ue.enrolid AND ej324_e.courseid = :ej324_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu324_u.id LEFT JOIN {groups_members} gm324_gm2 ON (gm324_gm2.userid = eu324_u.id AND gm324_gm2.groupid = :gm324_1944) WHERE 1 = 1 AND ej324_ue.status = :ej324_active AND ej324_e.status = :ej324_enabled AND ej324_ue.timestart < :ej324_now1 AND (ej324_ue.timeend = 0 OR ej324_ue.timeend > :ej324_now2) AND eu324_u.deleted = 0 AND eu324_u.id <> :eu324_guestid AND gm324_gm2.userid IS NOT NULL AND eu324_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu325_u.id FROM {user} eu325_u JOIN {user_enrolments} ej325_ue ON ej325_ue.userid = eu325_u.id JOIN {enrol} ej325_e ON (ej325_e.id = ej325_ue.enrolid AND ej325_e.courseid = :ej325_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu325_u.id LEFT JOIN {groups_members} gm325_gm2 ON (gm325_gm2.userid = eu325_u.id AND gm325_gm2.groupid = :gm325_1950) WHERE 1 = 1 AND ej325_ue.status = :ej325_active AND ej325_e.status = :ej325_enabled AND ej325_ue.timestart < :ej325_now1 AND (ej325_ue.timeend = 0 OR ej325_ue.timeend > :ej325_now2) AND eu325_u.deleted = 0 AND eu325_u.id <> :eu325_guestid AND gm325_gm2.userid IS NOT NULL AND eu325_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu326_u.id FROM {user} eu326_u JOIN {user_enrolments} ej326_ue ON ej326_ue.userid = eu326_u.id JOIN {enrol} ej326_e ON (ej326_e.id = ej326_ue.enrolid AND ej326_e.courseid = :ej326_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu326_u.id LEFT JOIN {groups_members} gm326_gm2 ON (gm326_gm2.userid = eu326_u.id AND gm326_gm2.groupid = :gm326_1956) WHERE 1 = 1 AND ej326_ue.status = :ej326_active AND ej326_e.status = :ej326_enabled AND ej326_ue.timestart < :ej326_now1 AND (ej326_ue.timeend = 0 OR ej326_ue.timeend > :ej326_now2) AND eu326_u.deleted = 0 AND eu326_u.id <> :eu326_guestid AND gm326_gm2.userid IS NOT NULL AND eu326_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu327_u.id FROM {user} eu327_u JOIN {user_enrolments} ej327_ue ON ej327_ue.userid = eu327_u.id JOIN {enrol} ej327_e ON (ej327_e.id = ej327_ue.enrolid AND ej327_e.courseid = :ej327_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu327_u.id LEFT JOIN {groups_members} gm327_gm2 ON (gm327_gm2.userid = eu327_u.id AND gm327_gm2.groupid = :gm327_1962) WHERE 1 = 1 AND ej327_ue.status = :ej327_active AND ej327_e.status = :ej327_enabled AND ej327_ue.timestart < :ej327_now1 AND (ej327_ue.timeend = 0 OR ej327_ue.timeend > :ej327_now2) AND eu327_u.deleted = 0 AND eu327_u.id <> :eu327_guestid AND gm327_gm2.userid IS NOT NULL AND eu327_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu328_u.id FROM {user} eu328_u JOIN {user_enrolments} ej328_ue ON ej328_ue.userid = eu328_u.id JOIN {enrol} ej328_e ON (ej328_e.id = ej328_ue.enrolid AND ej328_e.courseid = :ej328_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu328_u.id LEFT JOIN {groups_members} gm328_gm2 ON (gm328_gm2.userid = eu328_u.id AND gm328_gm2.groupid = :gm328_1968) WHERE 1 = 1 AND ej328_ue.status = :ej328_active AND ej328_e.status = :ej328_enabled AND ej328_ue.timestart < :ej328_now1 AND (ej328_ue.timeend = 0 OR ej328_ue.timeend > :ej328_now2) AND eu328_u.deleted = 0 AND eu328_u.id <> :eu328_guestid AND gm328_gm2.userid IS NOT NULL AND eu328_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu329_u.id FROM {user} eu329_u JOIN {user_enrolments} ej329_ue ON ej329_ue.userid = eu329_u.id JOIN {enrol} ej329_e ON (ej329_e.id = ej329_ue.enrolid AND ej329_e.courseid = :ej329_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu329_u.id LEFT JOIN {groups_members} gm329_gm2 ON (gm329_gm2.userid = eu329_u.id AND gm329_gm2.groupid = :gm329_1974) WHERE 1 = 1 AND ej329_ue.status = :ej329_active AND ej329_e.status = :ej329_enabled AND ej329_ue.timestart < :ej329_now1 AND (ej329_ue.timeend = 0 OR ej329_ue.timeend > :ej329_now2) AND eu329_u.deleted = 0 AND eu329_u.id <> :eu329_guestid AND gm329_gm2.userid IS NOT NULL AND eu329_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu330_u.id FROM {user} eu330_u JOIN {user_enrolments} ej330_ue ON ej330_ue.userid = eu330_u.id JOIN {enrol} ej330_e ON (ej330_e.id = ej330_ue.enrolid AND ej330_e.courseid = :ej330_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu330_u.id LEFT JOIN {groups_members} gm330_gm2 ON (gm330_gm2.userid = eu330_u.id AND gm330_gm2.groupid = :gm330_1980) WHERE 1 = 1 AND ej330_ue.status = :ej330_active AND ej330_e.status = :ej330_enabled AND ej330_ue.timestart < :ej330_now1 AND (ej330_ue.timeend = 0 OR ej330_ue.timeend > :ej330_now2) AND eu330_u.deleted = 0 AND eu330_u.id <> :eu330_guestid AND gm330_gm2.userid IS NOT NULL AND eu330_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu331_u.id FROM {user} eu331_u JOIN {user_enrolments} ej331_ue ON ej331_ue.userid = eu331_u.id JOIN {enrol} ej331_e ON (ej331_e.id = ej331_ue.enrolid AND ej331_e.courseid = :ej331_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu331_u.id LEFT JOIN {groups_members} gm331_gm2 ON (gm331_gm2.userid = eu331_u.id AND gm331_gm2.groupid = :gm331_1986) WHERE 1 = 1 AND ej331_ue.status = :ej331_active AND ej331_e.status = :ej331_enabled AND ej331_ue.timestart < :ej331_now1 AND (ej331_ue.timeend = 0 OR ej331_ue.timeend > :ej331_now2) AND eu331_u.deleted = 0 AND eu331_u.id <> :eu331_guestid AND gm331_gm2.userid IS NOT NULL AND eu331_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu332_u.id FROM {user} eu332_u JOIN {user_enrolments} ej332_ue ON ej332_ue.userid = eu332_u.id JOIN {enrol} ej332_e ON (ej332_e.id = ej332_ue.enrolid AND ej332_e.courseid = :ej332_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu332_u.id LEFT JOIN {groups_members} gm332_gm2 ON (gm332_gm2.userid = eu332_u.id AND gm332_gm2.groupid = :gm332_1992) WHERE 1 = 1 AND ej332_ue.status = :ej332_active AND ej332_e.status = :ej332_enabled AND ej332_ue.timestart < :ej332_now1 AND (ej332_ue.timeend = 0 OR ej332_ue.timeend > :ej332_now2) AND eu332_u.deleted = 0 AND eu332_u.id <> :eu332_guestid AND gm332_gm2.userid IS NOT NULL AND eu332_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu333_u.id FROM {user} eu333_u JOIN {user_enrolments} ej333_ue ON ej333_ue.userid = eu333_u.id JOIN {enrol} ej333_e ON (ej333_e.id = ej333_ue.enrolid AND ej333_e.courseid = :ej333_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu333_u.id LEFT JOIN {groups_members} gm333_gm2 ON (gm333_gm2.userid = eu333_u.id AND gm333_gm2.groupid = :gm333_1998) WHERE 1 = 1 AND ej333_ue.status = :ej333_active AND ej333_e.status = :ej333_enabled AND ej333_ue.timestart < :ej333_now1 AND (ej333_ue.timeend = 0 OR ej333_ue.timeend > :ej333_now2) AND eu333_u.deleted = 0 AND eu333_u.id <> :eu333_guestid AND gm333_gm2.userid IS NOT NULL AND eu333_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu334_u.id FROM {user} eu334_u JOIN {user_enrolments} ej334_ue ON ej334_ue.userid = eu334_u.id JOIN {enrol} ej334_e ON (ej334_e.id = ej334_ue.enrolid AND ej334_e.courseid = :ej334_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu334_u.id LEFT JOIN {groups_members} gm334_gm2 ON (gm334_gm2.userid = eu334_u.id AND gm334_gm2.groupid = :gm334_2004) WHERE 1 = 1 AND ej334_ue.status = :ej334_active AND ej334_e.status = :ej334_enabled AND ej334_ue.timestart < :ej334_now1 AND (ej334_ue.timeend = 0 OR ej334_ue.timeend > :ej334_now2) AND eu334_u.deleted = 0 AND eu334_u.id <> :eu334_guestid AND gm334_gm2.userid IS NOT NULL AND eu334_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu335_u.id FROM {user} eu335_u JOIN {user_enrolments} ej335_ue ON ej335_ue.userid = eu335_u.id JOIN {enrol} ej335_e ON (ej335_e.id = ej335_ue.enrolid AND ej335_e.courseid = :ej335_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu335_u.id LEFT JOIN {groups_members} gm335_gm2 ON (gm335_gm2.userid = eu335_u.id AND gm335_gm2.groupid = :gm335_2010) WHERE 1 = 1 AND ej335_ue.status = :ej335_active AND ej335_e.status = :ej335_enabled AND ej335_ue.timestart < :ej335_now1 AND (ej335_ue.timeend = 0 OR ej335_ue.timeend > :ej335_now2) AND eu335_u.deleted = 0 AND eu335_u.id <> :eu335_guestid AND gm335_gm2.userid IS NOT NULL AND eu335_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu336_u.id FROM {user} eu336_u JOIN {user_enrolments} ej336_ue ON ej336_ue.userid = eu336_u.id JOIN {enrol} ej336_e ON (ej336_e.id = ej336_ue.enrolid AND ej336_e.courseid = :ej336_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu336_u.id LEFT JOIN {groups_members} gm336_gm2 ON (gm336_gm2.userid = eu336_u.id AND gm336_gm2.groupid = :gm336_2016) WHERE 1 = 1 AND ej336_ue.status = :ej336_active AND ej336_e.status = :ej336_enabled AND ej336_ue.timestart < :ej336_now1 AND (ej336_ue.timeend = 0 OR ej336_ue.timeend > :ej336_now2) AND eu336_u.deleted = 0 AND eu336_u.id <> :eu336_guestid AND gm336_gm2.userid IS NOT NULL AND eu336_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu337_u.id FROM {user} eu337_u JOIN {user_enrolments} ej337_ue ON ej337_ue.userid = eu337_u.id JOIN {enrol} ej337_e ON (ej337_e.id = ej337_ue.enrolid AND ej337_e.courseid = :ej337_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu337_u.id LEFT JOIN {groups_members} gm337_gm2 ON (gm337_gm2.userid = eu337_u.id AND gm337_gm2.groupid = :gm337_2022) WHERE 1 = 1 AND ej337_ue.status = :ej337_active AND ej337_e.status = :ej337_enabled AND ej337_ue.timestart < :ej337_now1 AND (ej337_ue.timeend = 0 OR ej337_ue.timeend > :ej337_now2) AND eu337_u.deleted = 0 AND eu337_u.id <> :eu337_guestid AND gm337_gm2.userid IS NOT NULL AND eu337_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu338_u.id FROM {user} eu338_u JOIN {user_enrolments} ej338_ue ON ej338_ue.userid = eu338_u.id JOIN {enrol} ej338_e ON (ej338_e.id = ej338_ue.enrolid AND ej338_e.courseid = :ej338_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu338_u.id LEFT JOIN {groups_members} gm338_gm2 ON (gm338_gm2.userid = eu338_u.id AND gm338_gm2.groupid = :gm338_2028) WHERE 1 = 1 AND ej338_ue.status = :ej338_active AND ej338_e.status = :ej338_enabled AND ej338_ue.timestart < :ej338_now1 AND (ej338_ue.timeend = 0 OR ej338_ue.timeend > :ej338_now2) AND eu338_u.deleted = 0 AND eu338_u.id <> :eu338_guestid AND gm338_gm2.userid IS NOT NULL AND eu338_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu339_u.id FROM {user} eu339_u JOIN {user_enrolments} ej339_ue ON ej339_ue.userid = eu339_u.id JOIN {enrol} ej339_e ON (ej339_e.id = ej339_ue.enrolid AND ej339_e.courseid = :ej339_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu339_u.id LEFT JOIN {groups_members} gm339_gm2 ON (gm339_gm2.userid = eu339_u.id AND gm339_gm2.groupid = :gm339_2034) WHERE 1 = 1 AND ej339_ue.status = :ej339_active AND ej339_e.status = :ej339_enabled AND ej339_ue.timestart < :ej339_now1 AND (ej339_ue.timeend = 0 OR ej339_ue.timeend > :ej339_now2) AND eu339_u.deleted = 0 AND eu339_u.id <> :eu339_guestid AND gm339_gm2.userid IS NOT NULL AND eu339_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu340_u.id FROM {user} eu340_u JOIN {user_enrolments} ej340_ue ON ej340_ue.userid = eu340_u.id JOIN {enrol} ej340_e ON (ej340_e.id = ej340_ue.enrolid AND ej340_e.courseid = :ej340_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu340_u.id LEFT JOIN {groups_members} gm340_gm2 ON (gm340_gm2.userid = eu340_u.id AND gm340_gm2.groupid = :gm340_2040) WHERE 1 = 1 AND ej340_ue.status = :ej340_active AND ej340_e.status = :ej340_enabled AND ej340_ue.timestart < :ej340_now1 AND (ej340_ue.timeend = 0 OR ej340_ue.timeend > :ej340_now2) AND eu340_u.deleted = 0 AND eu340_u.id <> :eu340_guestid AND gm340_gm2.userid IS NOT NULL AND eu340_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu341_u.id FROM {user} eu341_u JOIN {user_enrolments} ej341_ue ON ej341_ue.userid = eu341_u.id JOIN {enrol} ej341_e ON (ej341_e.id = ej341_ue.enrolid AND ej341_e.courseid = :ej341_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu341_u.id LEFT JOIN {groups_members} gm341_gm2 ON (gm341_gm2.userid = eu341_u.id AND gm341_gm2.groupid = :gm341_2046) WHERE 1 = 1 AND ej341_ue.status = :ej341_active AND ej341_e.status = :ej341_enabled AND ej341_ue.timestart < :ej341_now1 AND (ej341_ue.timeend = 0 OR ej341_ue.timeend > :ej341_now2) AND eu341_u.deleted = 0 AND eu341_u.id <> :eu341_guestid AND gm341_gm2.userid IS NOT NULL AND eu341_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu342_u.id FROM {user} eu342_u JOIN {user_enrolments} ej342_ue ON ej342_ue.userid = eu342_u.id JOIN {enrol} ej342_e ON (ej342_e.id = ej342_ue.enrolid AND ej342_e.courseid = :ej342_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu342_u.id LEFT JOIN {groups_members} gm342_gm2 ON (gm342_gm2.userid = eu342_u.id AND gm342_gm2.groupid = :gm342_2052) WHERE 1 = 1 AND ej342_ue.status = :ej342_active AND ej342_e.status = :ej342_enabled AND ej342_ue.timestart < :ej342_now1 AND (ej342_ue.timeend = 0 OR ej342_ue.timeend > :ej342_now2) AND eu342_u.deleted = 0 AND eu342_u.id <> :eu342_guestid AND gm342_gm2.userid IS NOT NULL AND eu342_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu343_u.id FROM {user} eu343_u JOIN {user_enrolments} ej343_ue ON ej343_ue.userid = eu343_u.id JOIN {enrol} ej343_e ON (ej343_e.id = ej343_ue.enrolid AND ej343_e.courseid = :ej343_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu343_u.id LEFT JOIN {groups_members} gm343_gm2 ON (gm343_gm2.userid = eu343_u.id AND gm343_gm2.groupid = :gm343_2058) WHERE 1 = 1 AND ej343_ue.status = :ej343_active AND ej343_e.status = :ej343_enabled AND ej343_ue.timestart < :ej343_now1 AND (ej343_ue.timeend = 0 OR ej343_ue.timeend > :ej343_now2) AND eu343_u.deleted = 0 AND eu343_u.id <> :eu343_guestid AND gm343_gm2.userid IS NOT NULL AND eu343_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu344_u.id FROM {user} eu344_u JOIN {user_enrolments} ej344_ue ON ej344_ue.userid = eu344_u.id JOIN {enrol} ej344_e ON (ej344_e.id = ej344_ue.enrolid AND ej344_e.courseid = :ej344_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu344_u.id LEFT JOIN {groups_members} gm344_gm2 ON (gm344_gm2.userid = eu344_u.id AND gm344_gm2.groupid = :gm344_2064) WHERE 1 = 1 AND ej344_ue.status = :ej344_active AND ej344_e.status = :ej344_enabled AND ej344_ue.timestart < :ej344_now1 AND (ej344_ue.timeend = 0 OR ej344_ue.timeend > :ej344_now2) AND eu344_u.deleted = 0 AND eu344_u.id <> :eu344_guestid AND gm344_gm2.userid IS NOT NULL AND eu344_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu345_u.id FROM {user} eu345_u JOIN {user_enrolments} ej345_ue ON ej345_ue.userid = eu345_u.id JOIN {enrol} ej345_e ON (ej345_e.id = ej345_ue.enrolid AND ej345_e.courseid = :ej345_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu345_u.id LEFT JOIN {groups_members} gm345_gm2 ON (gm345_gm2.userid = eu345_u.id AND gm345_gm2.groupid = :gm345_2070) WHERE 1 = 1 AND ej345_ue.status = :ej345_active AND ej345_e.status = :ej345_enabled AND ej345_ue.timestart < :ej345_now1 AND (ej345_ue.timeend = 0 OR ej345_ue.timeend > :ej345_now2) AND eu345_u.deleted = 0 AND eu345_u.id <> :eu345_guestid AND gm345_gm2.userid IS NOT NULL AND eu345_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu346_u.id FROM {user} eu346_u JOIN {user_enrolments} ej346_ue ON ej346_ue.userid = eu346_u.id JOIN {enrol} ej346_e ON (ej346_e.id = ej346_ue.enrolid AND ej346_e.courseid = :ej346_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu346_u.id LEFT JOIN {groups_members} gm346_gm2 ON (gm346_gm2.userid = eu346_u.id AND gm346_gm2.groupid = :gm346_2076) WHERE 1 = 1 AND ej346_ue.status = :ej346_active AND ej346_e.status = :ej346_enabled AND ej346_ue.timestart < :ej346_now1 AND (ej346_ue.timeend = 0 OR ej346_ue.timeend > :ej346_now2) AND eu346_u.deleted = 0 AND eu346_u.id <> :eu346_guestid AND gm346_gm2.userid IS NOT NULL AND eu346_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu347_u.id FROM {user} eu347_u JOIN {user_enrolments} ej347_ue ON ej347_ue.userid = eu347_u.id JOIN {enrol} ej347_e ON (ej347_e.id = ej347_ue.enrolid AND ej347_e.courseid = :ej347_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu347_u.id LEFT JOIN {groups_members} gm347_gm2 ON (gm347_gm2.userid = eu347_u.id AND gm347_gm2.groupid = :gm347_2082) WHERE 1 = 1 AND ej347_ue.status = :ej347_active AND ej347_e.status = :ej347_enabled AND ej347_ue.timestart < :ej347_now1 AND (ej347_ue.timeend = 0 OR ej347_ue.timeend > :ej347_now2) AND eu347_u.deleted = 0 AND eu347_u.id <> :eu347_guestid AND gm347_gm2.userid IS NOT NULL AND eu347_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu348_u.id FROM {user} eu348_u JOIN {user_enrolments} ej348_ue ON ej348_ue.userid = eu348_u.id JOIN {enrol} ej348_e ON (ej348_e.id = ej348_ue.enrolid AND ej348_e.courseid = :ej348_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu348_u.id LEFT JOIN {groups_members} gm348_gm2 ON (gm348_gm2.userid = eu348_u.id AND gm348_gm2.groupid = :gm348_2088) WHERE 1 = 1 AND ej348_ue.status = :ej348_active AND ej348_e.status = :ej348_enabled AND ej348_ue.timestart < :ej348_now1 AND (ej348_ue.timeend = 0 OR ej348_ue.timeend > :ej348_now2) AND eu348_u.deleted = 0 AND eu348_u.id <> :eu348_guestid AND gm348_gm2.userid IS NOT NULL AND eu348_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu349_u.id FROM {user} eu349_u JOIN {user_enrolments} ej349_ue ON ej349_ue.userid = eu349_u.id JOIN {enrol} ej349_e ON (ej349_e.id = ej349_ue.enrolid AND ej349_e.courseid = :ej349_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu349_u.id LEFT JOIN {groups_members} gm349_gm2 ON (gm349_gm2.userid = eu349_u.id AND gm349_gm2.groupid = :gm349_2094) WHERE 1 = 1 AND ej349_ue.status = :ej349_active AND ej349_e.status = :ej349_enabled AND ej349_ue.timestart < :ej349_now1 AND (ej349_ue.timeend = 0 OR ej349_ue.timeend > :ej349_now2) AND eu349_u.deleted = 0 AND eu349_u.id <> :eu349_guestid AND gm349_gm2.userid IS NOT NULL AND eu349_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu350_u.id FROM {user} eu350_u JOIN {user_enrolments} ej350_ue ON ej350_ue.userid = eu350_u.id JOIN {enrol} ej350_e ON (ej350_e.id = ej350_ue.enrolid AND ej350_e.courseid = :ej350_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu350_u.id LEFT JOIN {groups_members} gm350_gm2 ON (gm350_gm2.userid = eu350_u.id AND gm350_gm2.groupid = :gm350_2100) WHERE 1 = 1 AND ej350_ue.status = :ej350_active AND ej350_e.status = :ej350_enabled AND ej350_ue.timestart < :ej350_now1 AND (ej350_ue.timeend = 0 OR ej350_ue.timeend > :ej350_now2) AND eu350_u.deleted = 0 AND eu350_u.id <> :eu350_guestid AND gm350_gm2.userid IS NOT NULL AND eu350_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu351_u.id FROM {user} eu351_u JOIN {user_enrolments} ej351_ue ON ej351_ue.userid = eu351_u.id JOIN {enrol} ej351_e ON (ej351_e.id = ej351_ue.enrolid AND ej351_e.courseid = :ej351_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu351_u.id LEFT JOIN {groups_members} gm351_gm2 ON (gm351_gm2.userid = eu351_u.id AND gm351_gm2.groupid = :gm351_2106) WHERE 1 = 1 AND ej351_ue.status = :ej351_active AND ej351_e.status = :ej351_enabled AND ej351_ue.timestart < :ej351_now1 AND (ej351_ue.timeend = 0 OR ej351_ue.timeend > :ej351_now2) AND eu351_u.deleted = 0 AND eu351_u.id <> :eu351_guestid AND gm351_gm2.userid IS NOT NULL AND eu351_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu352_u.id FROM {user} eu352_u JOIN {user_enrolments} ej352_ue ON ej352_ue.userid = eu352_u.id JOIN {enrol} ej352_e ON (ej352_e.id = ej352_ue.enrolid AND ej352_e.courseid = :ej352_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu352_u.id LEFT JOIN {groups_members} gm352_gm2 ON (gm352_gm2.userid = eu352_u.id AND gm352_gm2.groupid = :gm352_2112) WHERE 1 = 1 AND ej352_ue.status = :ej352_active AND ej352_e.status = :ej352_enabled AND ej352_ue.timestart < :ej352_now1 AND (ej352_ue.timeend = 0 OR ej352_ue.timeend > :ej352_now2) AND eu352_u.deleted = 0 AND eu352_u.id <> :eu352_guestid AND gm352_gm2.userid IS NOT NULL AND eu352_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu353_u.id FROM {user} eu353_u JOIN {user_enrolments} ej353_ue ON ej353_ue.userid = eu353_u.id JOIN {enrol} ej353_e ON (ej353_e.id = ej353_ue.enrolid AND ej353_e.courseid = :ej353_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu353_u.id LEFT JOIN {groups_members} gm353_gm2 ON (gm353_gm2.userid = eu353_u.id AND gm353_gm2.groupid = :gm353_2118) WHERE 1 = 1 AND ej353_ue.status = :ej353_active AND ej353_e.status = :ej353_enabled AND ej353_ue.timestart < :ej353_now1 AND (ej353_ue.timeend = 0 OR ej353_ue.timeend > :ej353_now2) AND eu353_u.deleted = 0 AND eu353_u.id <> :eu353_guestid AND gm353_gm2.userid IS NOT NULL AND eu353_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu354_u.id FROM {user} eu354_u JOIN {user_enrolments} ej354_ue ON ej354_ue.userid = eu354_u.id JOIN {enrol} ej354_e ON (ej354_e.id = ej354_ue.enrolid AND ej354_e.courseid = :ej354_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu354_u.id LEFT JOIN {groups_members} gm354_gm2 ON (gm354_gm2.userid = eu354_u.id AND gm354_gm2.groupid = :gm354_2124) WHERE 1 = 1 AND ej354_ue.status = :ej354_active AND ej354_e.status = :ej354_enabled AND ej354_ue.timestart < :ej354_now1 AND (ej354_ue.timeend = 0 OR ej354_ue.timeend > :ej354_now2) AND eu354_u.deleted = 0 AND eu354_u.id <> :eu354_guestid AND gm354_gm2.userid IS NOT NULL AND eu354_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu355_u.id FROM {user} eu355_u JOIN {user_enrolments} ej355_ue ON ej355_ue.userid = eu355_u.id JOIN {enrol} ej355_e ON (ej355_e.id = ej355_ue.enrolid AND ej355_e.courseid = :ej355_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu355_u.id LEFT JOIN {groups_members} gm355_gm2 ON (gm355_gm2.userid = eu355_u.id AND gm355_gm2.groupid = :gm355_2130) WHERE 1 = 1 AND ej355_ue.status = :ej355_active AND ej355_e.status = :ej355_enabled AND ej355_ue.timestart < :ej355_now1 AND (ej355_ue.timeend = 0 OR ej355_ue.timeend > :ej355_now2) AND eu355_u.deleted = 0 AND eu355_u.id <> :eu355_guestid AND gm355_gm2.userid IS NOT NULL AND eu355_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu356_u.id FROM {user} eu356_u JOIN {user_enrolments} ej356_ue ON ej356_ue.userid = eu356_u.id JOIN {enrol} ej356_e ON (ej356_e.id = ej356_ue.enrolid AND ej356_e.courseid = :ej356_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu356_u.id LEFT JOIN {groups_members} gm356_gm2 ON (gm356_gm2.userid = eu356_u.id AND gm356_gm2.groupid = :gm356_2136) WHERE 1 = 1 AND ej356_ue.status = :ej356_active AND ej356_e.status = :ej356_enabled AND ej356_ue.timestart < :ej356_now1 AND (ej356_ue.timeend = 0 OR ej356_ue.timeend > :ej356_now2) AND eu356_u.deleted = 0 AND eu356_u.id <> :eu356_guestid AND gm356_gm2.userid IS NOT NULL AND eu356_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu357_u.id FROM {user} eu357_u JOIN {user_enrolments} ej357_ue ON ej357_ue.userid = eu357_u.id JOIN {enrol} ej357_e ON (ej357_e.id = ej357_ue.enrolid AND ej357_e.courseid = :ej357_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu357_u.id LEFT JOIN {groups_members} gm357_gm2 ON (gm357_gm2.userid = eu357_u.id AND gm357_gm2.groupid = :gm357_2142) WHERE 1 = 1 AND ej357_ue.status = :ej357_active AND ej357_e.status = :ej357_enabled AND ej357_ue.timestart < :ej357_now1 AND (ej357_ue.timeend = 0 OR ej357_ue.timeend > :ej357_now2) AND eu357_u.deleted = 0 AND eu357_u.id <> :eu357_guestid AND gm357_gm2.userid IS NOT NULL AND eu357_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu358_u.id FROM {user} eu358_u JOIN {user_enrolments} ej358_ue ON ej358_ue.userid = eu358_u.id JOIN {enrol} ej358_e ON (ej358_e.id = ej358_ue.enrolid AND ej358_e.courseid = :ej358_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu358_u.id LEFT JOIN {groups_members} gm358_gm2 ON (gm358_gm2.userid = eu358_u.id AND gm358_gm2.groupid = :gm358_2148) WHERE 1 = 1 AND ej358_ue.status = :ej358_active AND ej358_e.status = :ej358_enabled AND ej358_ue.timestart < :ej358_now1 AND (ej358_ue.timeend = 0 OR ej358_ue.timeend > :ej358_now2) AND eu358_u.deleted = 0 AND eu358_u.id <> :eu358_guestid AND gm358_gm2.userid IS NOT NULL AND eu358_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu359_u.id FROM {user} eu359_u JOIN {user_enrolments} ej359_ue ON ej359_ue.userid = eu359_u.id JOIN {enrol} ej359_e ON (ej359_e.id = ej359_ue.enrolid AND ej359_e.courseid = :ej359_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu359_u.id LEFT JOIN {groups_members} gm359_gm2 ON (gm359_gm2.userid = eu359_u.id AND gm359_gm2.groupid = :gm359_2154) WHERE 1 = 1 AND ej359_ue.status = :ej359_active AND ej359_e.status = :ej359_enabled AND ej359_ue.timestart < :ej359_now1 AND (ej359_ue.timeend = 0 OR ej359_ue.timeend > :ej359_now2) AND eu359_u.deleted = 0 AND eu359_u.id <> :eu359_guestid AND gm359_gm2.userid IS NOT NULL AND eu359_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu360_u.id FROM {user} eu360_u JOIN {user_enrolments} ej360_ue ON ej360_ue.userid = eu360_u.id JOIN {enrol} ej360_e ON (ej360_e.id = ej360_ue.enrolid AND ej360_e.courseid = :ej360_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu360_u.id LEFT JOIN {groups_members} gm360_gm2 ON (gm360_gm2.userid = eu360_u.id AND gm360_gm2.groupid = :gm360_2160) WHERE 1 = 1 AND ej360_ue.status = :ej360_active AND ej360_e.status = :ej360_enabled AND ej360_ue.timestart < :ej360_now1 AND (ej360_ue.timeend = 0 OR ej360_ue.timeend > :ej360_now2) AND eu360_u.deleted = 0 AND eu360_u.id <> :eu360_guestid AND gm360_gm2.userid IS NOT NULL AND eu360_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu361_u.id FROM {user} eu361_u JOIN {user_enrolments} ej361_ue ON ej361_ue.userid = eu361_u.id JOIN {enrol} ej361_e ON (ej361_e.id = ej361_ue.enrolid AND ej361_e.courseid = :ej361_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu361_u.id LEFT JOIN {groups_members} gm361_gm2 ON (gm361_gm2.userid = eu361_u.id AND gm361_gm2.groupid = :gm361_2166) WHERE 1 = 1 AND ej361_ue.status = :ej361_active AND ej361_e.status = :ej361_enabled AND ej361_ue.timestart < :ej361_now1 AND (ej361_ue.timeend = 0 OR ej361_ue.timeend > :ej361_now2) AND eu361_u.deleted = 0 AND eu361_u.id <> :eu361_guestid AND gm361_gm2.userid IS NOT NULL AND eu361_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu362_u.id FROM {user} eu362_u JOIN {user_enrolments} ej362_ue ON ej362_ue.userid = eu362_u.id JOIN {enrol} ej362_e ON (ej362_e.id = ej362_ue.enrolid AND ej362_e.courseid = :ej362_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu362_u.id LEFT JOIN {groups_members} gm362_gm2 ON (gm362_gm2.userid = eu362_u.id AND gm362_gm2.groupid = :gm362_2172) WHERE 1 = 1 AND ej362_ue.status = :ej362_active AND ej362_e.status = :ej362_enabled AND ej362_ue.timestart < :ej362_now1 AND (ej362_ue.timeend = 0 OR ej362_ue.timeend > :ej362_now2) AND eu362_u.deleted = 0 AND eu362_u.id <> :eu362_guestid AND gm362_gm2.userid IS NOT NULL AND eu362_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu363_u.id FROM {user} eu363_u JOIN {user_enrolments} ej363_ue ON ej363_ue.userid = eu363_u.id JOIN {enrol} ej363_e ON (ej363_e.id = ej363_ue.enrolid AND ej363_e.courseid = :ej363_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu363_u.id LEFT JOIN {groups_members} gm363_gm2 ON (gm363_gm2.userid = eu363_u.id AND gm363_gm2.groupid = :gm363_2178) WHERE 1 = 1 AND ej363_ue.status = :ej363_active AND ej363_e.status = :ej363_enabled AND ej363_ue.timestart < :ej363_now1 AND (ej363_ue.timeend = 0 OR ej363_ue.timeend > :ej363_now2) AND eu363_u.deleted = 0 AND eu363_u.id <> :eu363_guestid AND gm363_gm2.userid IS NOT NULL AND eu363_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu364_u.id FROM {user} eu364_u JOIN {user_enrolments} ej364_ue ON ej364_ue.userid = eu364_u.id JOIN {enrol} ej364_e ON (ej364_e.id = ej364_ue.enrolid AND ej364_e.courseid = :ej364_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu364_u.id LEFT JOIN {groups_members} gm364_gm2 ON (gm364_gm2.userid = eu364_u.id AND gm364_gm2.groupid = :gm364_2184) WHERE 1 = 1 AND ej364_ue.status = :ej364_active AND ej364_e.status = :ej364_enabled AND ej364_ue.timestart < :ej364_now1 AND (ej364_ue.timeend = 0 OR ej364_ue.timeend > :ej364_now2) AND eu364_u.deleted = 0 AND eu364_u.id <> :eu364_guestid AND gm364_gm2.userid IS NOT NULL AND eu364_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu365_u.id FROM {user} eu365_u JOIN {user_enrolments} ej365_ue ON ej365_ue.userid = eu365_u.id JOIN {enrol} ej365_e ON (ej365_e.id = ej365_ue.enrolid AND ej365_e.courseid = :ej365_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu365_u.id LEFT JOIN {groups_members} gm365_gm2 ON (gm365_gm2.userid = eu365_u.id AND gm365_gm2.groupid = :gm365_2190) WHERE 1 = 1 AND ej365_ue.status = :ej365_active AND ej365_e.status = :ej365_enabled AND ej365_ue.timestart < :ej365_now1 AND (ej365_ue.timeend = 0 OR ej365_ue.timeend > :ej365_now2) AND eu365_u.deleted = 0 AND eu365_u.id <> :eu365_guestid AND gm365_gm2.userid IS NOT NULL AND eu365_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu366_u.id FROM {user} eu366_u JOIN {user_enrolments} ej366_ue ON ej366_ue.userid = eu366_u.id JOIN {enrol} ej366_e ON (ej366_e.id = ej366_ue.enrolid AND ej366_e.courseid = :ej366_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu366_u.id LEFT JOIN {groups_members} gm366_gm2 ON (gm366_gm2.userid = eu366_u.id AND gm366_gm2.groupid = :gm366_2196) WHERE 1 = 1 AND ej366_ue.status = :ej366_active AND ej366_e.status = :ej366_enabled AND ej366_ue.timestart < :ej366_now1 AND (ej366_ue.timeend = 0 OR ej366_ue.timeend > :ej366_now2) AND eu366_u.deleted = 0 AND eu366_u.id <> :eu366_guestid AND gm366_gm2.userid IS NOT NULL AND eu366_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu367_u.id FROM {user} eu367_u JOIN {user_enrolments} ej367_ue ON ej367_ue.userid = eu367_u.id JOIN {enrol} ej367_e ON (ej367_e.id = ej367_ue.enrolid AND ej367_e.courseid = :ej367_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu367_u.id LEFT JOIN {groups_members} gm367_gm2 ON (gm367_gm2.userid = eu367_u.id AND gm367_gm2.groupid = :gm367_2202) WHERE 1 = 1 AND ej367_ue.status = :ej367_active AND ej367_e.status = :ej367_enabled AND ej367_ue.timestart < :ej367_now1 AND (ej367_ue.timeend = 0 OR ej367_ue.timeend > :ej367_now2) AND eu367_u.deleted = 0 AND eu367_u.id <> :eu367_guestid AND gm367_gm2.userid IS NOT NULL AND eu367_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu368_u.id FROM {user} eu368_u JOIN {user_enrolments} ej368_ue ON ej368_ue.userid = eu368_u.id JOIN {enrol} ej368_e ON (ej368_e.id = ej368_ue.enrolid AND ej368_e.courseid = :ej368_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu368_u.id LEFT JOIN {groups_members} gm368_gm2 ON (gm368_gm2.userid = eu368_u.id AND gm368_gm2.groupid = :gm368_2208) WHERE 1 = 1 AND ej368_ue.status = :ej368_active AND ej368_e.status = :ej368_enabled AND ej368_ue.timestart < :ej368_now1 AND (ej368_ue.timeend = 0 OR ej368_ue.timeend > :ej368_now2) AND eu368_u.deleted = 0 AND eu368_u.id <> :eu368_guestid AND gm368_gm2.userid IS NOT NULL AND eu368_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu369_u.id FROM {user} eu369_u JOIN {user_enrolments} ej369_ue ON ej369_ue.userid = eu369_u.id JOIN {enrol} ej369_e ON (ej369_e.id = ej369_ue.enrolid AND ej369_e.courseid = :ej369_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu369_u.id LEFT JOIN {groups_members} gm369_gm2 ON (gm369_gm2.userid = eu369_u.id AND gm369_gm2.groupid = :gm369_2214) WHERE 1 = 1 AND ej369_ue.status = :ej369_active AND ej369_e.status = :ej369_enabled AND ej369_ue.timestart < :ej369_now1 AND (ej369_ue.timeend = 0 OR ej369_ue.timeend > :ej369_now2) AND eu369_u.deleted = 0 AND eu369_u.id <> :eu369_guestid AND gm369_gm2.userid IS NOT NULL AND eu369_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu370_u.id FROM {user} eu370_u JOIN {user_enrolments} ej370_ue ON ej370_ue.userid = eu370_u.id JOIN {enrol} ej370_e ON (ej370_e.id = ej370_ue.enrolid AND ej370_e.courseid = :ej370_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu370_u.id LEFT JOIN {groups_members} gm370_gm2 ON (gm370_gm2.userid = eu370_u.id AND gm370_gm2.groupid = :gm370_2220) WHERE 1 = 1 AND ej370_ue.status = :ej370_active AND ej370_e.status = :ej370_enabled AND ej370_ue.timestart < :ej370_now1 AND (ej370_ue.timeend = 0 OR ej370_ue.timeend > :ej370_now2) AND eu370_u.deleted = 0 AND eu370_u.id <> :eu370_guestid AND gm370_gm2.userid IS NOT NULL AND eu370_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu371_u.id FROM {user} eu371_u JOIN {user_enrolments} ej371_ue ON ej371_ue.userid = eu371_u.id JOIN {enrol} ej371_e ON (ej371_e.id = ej371_ue.enrolid AND ej371_e.courseid = :ej371_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu371_u.id LEFT JOIN {groups_members} gm371_gm2 ON (gm371_gm2.userid = eu371_u.id AND gm371_gm2.groupid = :gm371_2226) WHERE 1 = 1 AND ej371_ue.status = :ej371_active AND ej371_e.status = :ej371_enabled AND ej371_ue.timestart < :ej371_now1 AND (ej371_ue.timeend = 0 OR ej371_ue.timeend > :ej371_now2) AND eu371_u.deleted = 0 AND eu371_u.id <> :eu371_guestid AND gm371_gm2.userid IS NOT NULL AND eu371_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu372_u.id FROM {user} eu372_u JOIN {user_enrolments} ej372_ue ON ej372_ue.userid = eu372_u.id JOIN {enrol} ej372_e ON (ej372_e.id = ej372_ue.enrolid AND ej372_e.courseid = :ej372_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu372_u.id LEFT JOIN {groups_members} gm372_gm2 ON (gm372_gm2.userid = eu372_u.id AND gm372_gm2.groupid = :gm372_2232) WHERE 1 = 1 AND ej372_ue.status = :ej372_active AND ej372_e.status = :ej372_enabled AND ej372_ue.timestart < :ej372_now1 AND (ej372_ue.timeend = 0 OR ej372_ue.timeend > :ej372_now2) AND eu372_u.deleted = 0 AND eu372_u.id <> :eu372_guestid AND gm372_gm2.userid IS NOT NULL AND eu372_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu373_u.id FROM {user} eu373_u JOIN {user_enrolments} ej373_ue ON ej373_ue.userid = eu373_u.id JOIN {enrol} ej373_e ON (ej373_e.id = ej373_ue.enrolid AND ej373_e.courseid = :ej373_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu373_u.id LEFT JOIN {groups_members} gm373_gm2 ON (gm373_gm2.userid = eu373_u.id AND gm373_gm2.groupid = :gm373_2238) WHERE 1 = 1 AND ej373_ue.status = :ej373_active AND ej373_e.status = :ej373_enabled AND ej373_ue.timestart < :ej373_now1 AND (ej373_ue.timeend = 0 OR ej373_ue.timeend > :ej373_now2) AND eu373_u.deleted = 0 AND eu373_u.id <> :eu373_guestid AND gm373_gm2.userid IS NOT NULL AND eu373_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu374_u.id FROM {user} eu374_u JOIN {user_enrolments} ej374_ue ON ej374_ue.userid = eu374_u.id JOIN {enrol} ej374_e ON (ej374_e.id = ej374_ue.enrolid AND ej374_e.courseid = :ej374_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu374_u.id LEFT JOIN {groups_members} gm374_gm2 ON (gm374_gm2.userid = eu374_u.id AND gm374_gm2.groupid = :gm374_2244) WHERE 1 = 1 AND ej374_ue.status = :ej374_active AND ej374_e.status = :ej374_enabled AND ej374_ue.timestart < :ej374_now1 AND (ej374_ue.timeend = 0 OR ej374_ue.timeend > :ej374_now2) AND eu374_u.deleted = 0 AND eu374_u.id <> :eu374_guestid AND gm374_gm2.userid IS NOT NULL AND eu374_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu375_u.id FROM {user} eu375_u JOIN {user_enrolments} ej375_ue ON ej375_ue.userid = eu375_u.id JOIN {enrol} ej375_e ON (ej375_e.id = ej375_ue.enrolid AND ej375_e.courseid = :ej375_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu375_u.id LEFT JOIN {groups_members} gm375_gm2 ON (gm375_gm2.userid = eu375_u.id AND gm375_gm2.groupid = :gm375_2250) WHERE 1 = 1 AND ej375_ue.status = :ej375_active AND ej375_e.status = :ej375_enabled AND ej375_ue.timestart < :ej375_now1 AND (ej375_ue.timeend = 0 OR ej375_ue.timeend > :ej375_now2) AND eu375_u.deleted = 0 AND eu375_u.id <> :eu375_guestid AND gm375_gm2.userid IS NOT NULL AND eu375_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu376_u.id FROM {user} eu376_u JOIN {user_enrolments} ej376_ue ON ej376_ue.userid = eu376_u.id JOIN {enrol} ej376_e ON (ej376_e.id = ej376_ue.enrolid AND ej376_e.courseid = :ej376_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu376_u.id LEFT JOIN {groups_members} gm376_gm2 ON (gm376_gm2.userid = eu376_u.id AND gm376_gm2.groupid = :gm376_2256) WHERE 1 = 1 AND ej376_ue.status = :ej376_active AND ej376_e.status = :ej376_enabled AND ej376_ue.timestart < :ej376_now1 AND (ej376_ue.timeend = 0 OR ej376_ue.timeend > :ej376_now2) AND eu376_u.deleted = 0 AND eu376_u.id <> :eu376_guestid AND gm376_gm2.userid IS NOT NULL AND eu376_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu377_u.id FROM {user} eu377_u JOIN {user_enrolments} ej377_ue ON ej377_ue.userid = eu377_u.id JOIN {enrol} ej377_e ON (ej377_e.id = ej377_ue.enrolid AND ej377_e.courseid = :ej377_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu377_u.id LEFT JOIN {groups_members} gm377_gm2 ON (gm377_gm2.userid = eu377_u.id AND gm377_gm2.groupid = :gm377_2262) WHERE 1 = 1 AND ej377_ue.status = :ej377_active AND ej377_e.status = :ej377_enabled AND ej377_ue.timestart < :ej377_now1 AND (ej377_ue.timeend = 0 OR ej377_ue.timeend > :ej377_now2) AND eu377_u.deleted = 0 AND eu377_u.id <> :eu377_guestid AND gm377_gm2.userid IS NOT NULL AND eu377_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu378_u.id FROM {user} eu378_u JOIN {user_enrolments} ej378_ue ON ej378_ue.userid = eu378_u.id JOIN {enrol} ej378_e ON (ej378_e.id = ej378_ue.enrolid AND ej378_e.courseid = :ej378_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu378_u.id LEFT JOIN {groups_members} gm378_gm2 ON (gm378_gm2.userid = eu378_u.id AND gm378_gm2.groupid = :gm378_2268) WHERE 1 = 1 AND ej378_ue.status = :ej378_active AND ej378_e.status = :ej378_enabled AND ej378_ue.timestart < :ej378_now1 AND (ej378_ue.timeend = 0 OR ej378_ue.timeend > :ej378_now2) AND eu378_u.deleted = 0 AND eu378_u.id <> :eu378_guestid AND gm378_gm2.userid IS NOT NULL AND eu378_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu379_u.id FROM {user} eu379_u JOIN {user_enrolments} ej379_ue ON ej379_ue.userid = eu379_u.id JOIN {enrol} ej379_e ON (ej379_e.id = ej379_ue.enrolid AND ej379_e.courseid = :ej379_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu379_u.id LEFT JOIN {groups_members} gm379_gm2 ON (gm379_gm2.userid = eu379_u.id AND gm379_gm2.groupid = :gm379_2274) WHERE 1 = 1 AND ej379_ue.status = :ej379_active AND ej379_e.status = :ej379_enabled AND ej379_ue.timestart < :ej379_now1 AND (ej379_ue.timeend = 0 OR ej379_ue.timeend > :ej379_now2) AND eu379_u.deleted = 0 AND eu379_u.id <> :eu379_guestid AND gm379_gm2.userid IS NOT NULL AND eu379_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu380_u.id FROM {user} eu380_u JOIN {user_enrolments} ej380_ue ON ej380_ue.userid = eu380_u.id JOIN {enrol} ej380_e ON (ej380_e.id = ej380_ue.enrolid AND ej380_e.courseid = :ej380_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu380_u.id LEFT JOIN {groups_members} gm380_gm2 ON (gm380_gm2.userid = eu380_u.id AND gm380_gm2.groupid = :gm380_2280) WHERE 1 = 1 AND ej380_ue.status = :ej380_active AND ej380_e.status = :ej380_enabled AND ej380_ue.timestart < :ej380_now1 AND (ej380_ue.timeend = 0 OR ej380_ue.timeend > :ej380_now2) AND eu380_u.deleted = 0 AND eu380_u.id <> :eu380_guestid AND gm380_gm2.userid IS NOT NULL AND eu380_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu381_u.id FROM {user} eu381_u JOIN {user_enrolments} ej381_ue ON ej381_ue.userid = eu381_u.id JOIN {enrol} ej381_e ON (ej381_e.id = ej381_ue.enrolid AND ej381_e.courseid = :ej381_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu381_u.id LEFT JOIN {groups_members} gm381_gm2 ON (gm381_gm2.userid = eu381_u.id AND gm381_gm2.groupid = :gm381_2286) WHERE 1 = 1 AND ej381_ue.status = :ej381_active AND ej381_e.status = :ej381_enabled AND ej381_ue.timestart < :ej381_now1 AND (ej381_ue.timeend = 0 OR ej381_ue.timeend > :ej381_now2) AND eu381_u.deleted = 0 AND eu381_u.id <> :eu381_guestid AND gm381_gm2.userid IS NOT NULL AND eu381_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu382_u.id FROM {user} eu382_u JOIN {user_enrolments} ej382_ue ON ej382_ue.userid = eu382_u.id JOIN {enrol} ej382_e ON (ej382_e.id = ej382_ue.enrolid AND ej382_e.courseid = :ej382_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu382_u.id LEFT JOIN {groups_members} gm382_gm2 ON (gm382_gm2.userid = eu382_u.id AND gm382_gm2.groupid = :gm382_2292) WHERE 1 = 1 AND ej382_ue.status = :ej382_active AND ej382_e.status = :ej382_enabled AND ej382_ue.timestart < :ej382_now1 AND (ej382_ue.timeend = 0 OR ej382_ue.timeend > :ej382_now2) AND eu382_u.deleted = 0 AND eu382_u.id <> :eu382_guestid AND gm382_gm2.userid IS NOT NULL AND eu382_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu383_u.id FROM {user} eu383_u JOIN {user_enrolments} ej383_ue ON ej383_ue.userid = eu383_u.id JOIN {enrol} ej383_e ON (ej383_e.id = ej383_ue.enrolid AND ej383_e.courseid = :ej383_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu383_u.id LEFT JOIN {groups_members} gm383_gm2 ON (gm383_gm2.userid = eu383_u.id AND gm383_gm2.groupid = :gm383_2298) WHERE 1 = 1 AND ej383_ue.status = :ej383_active AND ej383_e.status = :ej383_enabled AND ej383_ue.timestart < :ej383_now1 AND (ej383_ue.timeend = 0 OR ej383_ue.timeend > :ej383_now2) AND eu383_u.deleted = 0 AND eu383_u.id <> :eu383_guestid AND gm383_gm2.userid IS NOT NULL AND eu383_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu384_u.id FROM {user} eu384_u JOIN {user_enrolments} ej384_ue ON ej384_ue.userid = eu384_u.id JOIN {enrol} ej384_e ON (ej384_e.id = ej384_ue.enrolid AND ej384_e.courseid = :ej384_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu384_u.id LEFT JOIN {groups_members} gm384_gm2 ON (gm384_gm2.userid = eu384_u.id AND gm384_gm2.groupid = :gm384_2304) WHERE 1 = 1 AND ej384_ue.status = :ej384_active AND ej384_e.status = :ej384_enabled AND ej384_ue.timestart < :ej384_now1 AND (ej384_ue.timeend = 0 OR ej384_ue.timeend > :ej384_now2) AND eu384_u.deleted = 0 AND eu384_u.id <> :eu384_guestid AND gm384_gm2.userid IS NOT NULL AND eu384_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu385_u.id FROM {user} eu385_u JOIN {user_enrolments} ej385_ue ON ej385_ue.userid = eu385_u.id JOIN {enrol} ej385_e ON (ej385_e.id = ej385_ue.enrolid AND ej385_e.courseid = :ej385_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu385_u.id LEFT JOIN {groups_members} gm385_gm2 ON (gm385_gm2.userid = eu385_u.id AND gm385_gm2.groupid = :gm385_2310) WHERE 1 = 1 AND ej385_ue.status = :ej385_active AND ej385_e.status = :ej385_enabled AND ej385_ue.timestart < :ej385_now1 AND (ej385_ue.timeend = 0 OR ej385_ue.timeend > :ej385_now2) AND eu385_u.deleted = 0 AND eu385_u.id <> :eu385_guestid AND gm385_gm2.userid IS NOT NULL AND eu385_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu386_u.id FROM {user} eu386_u JOIN {user_enrolments} ej386_ue ON ej386_ue.userid = eu386_u.id JOIN {enrol} ej386_e ON (ej386_e.id = ej386_ue.enrolid AND ej386_e.courseid = :ej386_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu386_u.id LEFT JOIN {groups_members} gm386_gm2 ON (gm386_gm2.userid = eu386_u.id AND gm386_gm2.groupid = :gm386_2316) WHERE 1 = 1 AND ej386_ue.status = :ej386_active AND ej386_e.status = :ej386_enabled AND ej386_ue.timestart < :ej386_now1 AND (ej386_ue.timeend = 0 OR ej386_ue.timeend > :ej386_now2) AND eu386_u.deleted = 0 AND eu386_u.id <> :eu386_guestid AND gm386_gm2.userid IS NOT NULL AND eu386_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu387_u.id FROM {user} eu387_u JOIN {user_enrolments} ej387_ue ON ej387_ue.userid = eu387_u.id JOIN {enrol} ej387_e ON (ej387_e.id = ej387_ue.enrolid AND ej387_e.courseid = :ej387_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu387_u.id LEFT JOIN {groups_members} gm387_gm2 ON (gm387_gm2.userid = eu387_u.id AND gm387_gm2.groupid = :gm387_2322) WHERE 1 = 1 AND ej387_ue.status = :ej387_active AND ej387_e.status = :ej387_enabled AND ej387_ue.timestart < :ej387_now1 AND (ej387_ue.timeend = 0 OR ej387_ue.timeend > :ej387_now2) AND eu387_u.deleted = 0 AND eu387_u.id <> :eu387_guestid AND gm387_gm2.userid IS NOT NULL AND eu387_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu388_u.id FROM {user} eu388_u JOIN {user_enrolments} ej388_ue ON ej388_ue.userid = eu388_u.id JOIN {enrol} ej388_e ON (ej388_e.id = ej388_ue.enrolid AND ej388_e.courseid = :ej388_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu388_u.id LEFT JOIN {groups_members} gm388_gm2 ON (gm388_gm2.userid = eu388_u.id AND gm388_gm2.groupid = :gm388_2328) WHERE 1 = 1 AND ej388_ue.status = :ej388_active AND ej388_e.status = :ej388_enabled AND ej388_ue.timestart < :ej388_now1 AND (ej388_ue.timeend = 0 OR ej388_ue.timeend > :ej388_now2) AND eu388_u.deleted = 0 AND eu388_u.id <> :eu388_guestid AND gm388_gm2.userid IS NOT NULL AND eu388_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu389_u.id FROM {user} eu389_u JOIN {user_enrolments} ej389_ue ON ej389_ue.userid = eu389_u.id JOIN {enrol} ej389_e ON (ej389_e.id = ej389_ue.enrolid AND ej389_e.courseid = :ej389_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu389_u.id LEFT JOIN {groups_members} gm389_gm2 ON (gm389_gm2.userid = eu389_u.id AND gm389_gm2.groupid = :gm389_2334) WHERE 1 = 1 AND ej389_ue.status = :ej389_active AND ej389_e.status = :ej389_enabled AND ej389_ue.timestart < :ej389_now1 AND (ej389_ue.timeend = 0 OR ej389_ue.timeend > :ej389_now2) AND eu389_u.deleted = 0 AND eu389_u.id <> :eu389_guestid AND gm389_gm2.userid IS NOT NULL AND eu389_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu390_u.id FROM {user} eu390_u JOIN {user_enrolments} ej390_ue ON ej390_ue.userid = eu390_u.id JOIN {enrol} ej390_e ON (ej390_e.id = ej390_ue.enrolid AND ej390_e.courseid = :ej390_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu390_u.id LEFT JOIN {groups_members} gm390_gm2 ON (gm390_gm2.userid = eu390_u.id AND gm390_gm2.groupid = :gm390_2340) WHERE 1 = 1 AND ej390_ue.status = :ej390_active AND ej390_e.status = :ej390_enabled AND ej390_ue.timestart < :ej390_now1 AND (ej390_ue.timeend = 0 OR ej390_ue.timeend > :ej390_now2) AND eu390_u.deleted = 0 AND eu390_u.id <> :eu390_guestid AND gm390_gm2.userid IS NOT NULL AND eu390_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu391_u.id FROM {user} eu391_u JOIN {user_enrolments} ej391_ue ON ej391_ue.userid = eu391_u.id JOIN {enrol} ej391_e ON (ej391_e.id = ej391_ue.enrolid AND ej391_e.courseid = :ej391_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu391_u.id LEFT JOIN {groups_members} gm391_gm2 ON (gm391_gm2.userid = eu391_u.id AND gm391_gm2.groupid = :gm391_2346) WHERE 1 = 1 AND ej391_ue.status = :ej391_active AND ej391_e.status = :ej391_enabled AND ej391_ue.timestart < :ej391_now1 AND (ej391_ue.timeend = 0 OR ej391_ue.timeend > :ej391_now2) AND eu391_u.deleted = 0 AND eu391_u.id <> :eu391_guestid AND gm391_gm2.userid IS NOT NULL AND eu391_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu392_u.id FROM {user} eu392_u JOIN {user_enrolments} ej392_ue ON ej392_ue.userid = eu392_u.id JOIN {enrol} ej392_e ON (ej392_e.id = ej392_ue.enrolid AND ej392_e.courseid = :ej392_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu392_u.id LEFT JOIN {groups_members} gm392_gm2 ON (gm392_gm2.userid = eu392_u.id AND gm392_gm2.groupid = :gm392_2352) WHERE 1 = 1 AND ej392_ue.status = :ej392_active AND ej392_e.status = :ej392_enabled AND ej392_ue.timestart < :ej392_now1 AND (ej392_ue.timeend = 0 OR ej392_ue.timeend > :ej392_now2) AND eu392_u.deleted = 0 AND eu392_u.id <> :eu392_guestid AND gm392_gm2.userid IS NOT NULL AND eu392_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu393_u.id FROM {user} eu393_u JOIN {user_enrolments} ej393_ue ON ej393_ue.userid = eu393_u.id JOIN {enrol} ej393_e ON (ej393_e.id = ej393_ue.enrolid AND ej393_e.courseid = :ej393_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu393_u.id LEFT JOIN {groups_members} gm393_gm2 ON (gm393_gm2.userid = eu393_u.id AND gm393_gm2.groupid = :gm393_2358) WHERE 1 = 1 AND ej393_ue.status = :ej393_active AND ej393_e.status = :ej393_enabled AND ej393_ue.timestart < :ej393_now1 AND (ej393_ue.timeend = 0 OR ej393_ue.timeend > :ej393_now2) AND eu393_u.deleted = 0 AND eu393_u.id <> :eu393_guestid AND gm393_gm2.userid IS NOT NULL AND eu393_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu394_u.id FROM {user} eu394_u JOIN {user_enrolments} ej394_ue ON ej394_ue.userid = eu394_u.id JOIN {enrol} ej394_e ON (ej394_e.id = ej394_ue.enrolid AND ej394_e.courseid = :ej394_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu394_u.id LEFT JOIN {groups_members} gm394_gm2 ON (gm394_gm2.userid = eu394_u.id AND gm394_gm2.groupid = :gm394_2364) WHERE 1 = 1 AND ej394_ue.status = :ej394_active AND ej394_e.status = :ej394_enabled AND ej394_ue.timestart < :ej394_now1 AND (ej394_ue.timeend = 0 OR ej394_ue.timeend > :ej394_now2) AND eu394_u.deleted = 0 AND eu394_u.id <> :eu394_guestid AND gm394_gm2.userid IS NOT NULL AND eu394_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu395_u.id FROM {user} eu395_u JOIN {user_enrolments} ej395_ue ON ej395_ue.userid = eu395_u.id JOIN {enrol} ej395_e ON (ej395_e.id = ej395_ue.enrolid AND ej395_e.courseid = :ej395_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu395_u.id LEFT JOIN {groups_members} gm395_gm2 ON (gm395_gm2.userid = eu395_u.id AND gm395_gm2.groupid = :gm395_2370) WHERE 1 = 1 AND ej395_ue.status = :ej395_active AND ej395_e.status = :ej395_enabled AND ej395_ue.timestart < :ej395_now1 AND (ej395_ue.timeend = 0 OR ej395_ue.timeend > :ej395_now2) AND eu395_u.deleted = 0 AND eu395_u.id <> :eu395_guestid AND gm395_gm2.userid IS NOT NULL AND eu395_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu396_u.id FROM {user} eu396_u JOIN {user_enrolments} ej396_ue ON ej396_ue.userid = eu396_u.id JOIN {enrol} ej396_e ON (ej396_e.id = ej396_ue.enrolid AND ej396_e.courseid = :ej396_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu396_u.id LEFT JOIN {groups_members} gm396_gm2 ON (gm396_gm2.userid = eu396_u.id AND gm396_gm2.groupid = :gm396_2376) WHERE 1 = 1 AND ej396_ue.status = :ej396_active AND ej396_e.status = :ej396_enabled AND ej396_ue.timestart < :ej396_now1 AND (ej396_ue.timeend = 0 OR ej396_ue.timeend > :ej396_now2) AND eu396_u.deleted = 0 AND eu396_u.id <> :eu396_guestid AND gm396_gm2.userid IS NOT NULL AND eu396_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu397_u.id FROM {user} eu397_u JOIN {user_enrolments} ej397_ue ON ej397_ue.userid = eu397_u.id JOIN {enrol} ej397_e ON (ej397_e.id = ej397_ue.enrolid AND ej397_e.courseid = :ej397_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu397_u.id LEFT JOIN {groups_members} gm397_gm2 ON (gm397_gm2.userid = eu397_u.id AND gm397_gm2.groupid = :gm397_2382) WHERE 1 = 1 AND ej397_ue.status = :ej397_active AND ej397_e.status = :ej397_enabled AND ej397_ue.timestart < :ej397_now1 AND (ej397_ue.timeend = 0 OR ej397_ue.timeend > :ej397_now2) AND eu397_u.deleted = 0 AND eu397_u.id <> :eu397_guestid AND gm397_gm2.userid IS NOT NULL AND eu397_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu398_u.id FROM {user} eu398_u JOIN {user_enrolments} ej398_ue ON ej398_ue.userid = eu398_u.id JOIN {enrol} ej398_e ON (ej398_e.id = ej398_ue.enrolid AND ej398_e.courseid = :ej398_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu398_u.id LEFT JOIN {groups_members} gm398_gm2 ON (gm398_gm2.userid = eu398_u.id AND gm398_gm2.groupid = :gm398_2388) WHERE 1 = 1 AND ej398_ue.status = :ej398_active AND ej398_e.status = :ej398_enabled AND ej398_ue.timestart < :ej398_now1 AND (ej398_ue.timeend = 0 OR ej398_ue.timeend > :ej398_now2) AND eu398_u.deleted = 0 AND eu398_u.id <> :eu398_guestid AND gm398_gm2.userid IS NOT NULL AND eu398_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu399_u.id FROM {user} eu399_u JOIN {user_enrolments} ej399_ue ON ej399_ue.userid = eu399_u.id JOIN {enrol} ej399_e ON (ej399_e.id = ej399_ue.enrolid AND ej399_e.courseid = :ej399_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu399_u.id LEFT JOIN {groups_members} gm399_gm2 ON (gm399_gm2.userid = eu399_u.id AND gm399_gm2.groupid = :gm399_2394) WHERE 1 = 1 AND ej399_ue.status = :ej399_active AND ej399_e.status = :ej399_enabled AND ej399_ue.timestart < :ej399_now1 AND (ej399_ue.timeend = 0 OR ej399_ue.timeend > :ej399_now2) AND eu399_u.deleted = 0 AND eu399_u.id <> :eu399_guestid AND gm399_gm2.userid IS NOT NULL AND eu399_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu400_u.id FROM {user} eu400_u JOIN {user_enrolments} ej400_ue ON ej400_ue.userid = eu400_u.id JOIN {enrol} ej400_e ON (ej400_e.id = ej400_ue.enrolid AND ej400_e.courseid = :ej400_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu400_u.id LEFT JOIN {groups_members} gm400_gm2 ON (gm400_gm2.userid = eu400_u.id AND gm400_gm2.groupid = :gm400_2400) WHERE 1 = 1 AND ej400_ue.status = :ej400_active AND ej400_e.status = :ej400_enabled AND ej400_ue.timestart < :ej400_now1 AND (ej400_ue.timeend = 0 OR ej400_ue.timeend > :ej400_now2) AND eu400_u.deleted = 0 AND eu400_u.id <> :eu400_guestid AND gm400_gm2.userid IS NOT NULL AND eu400_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu401_u.id FROM {user} eu401_u JOIN {user_enrolments} ej401_ue ON ej401_ue.userid = eu401_u.id JOIN {enrol} ej401_e ON (ej401_e.id = ej401_ue.enrolid AND ej401_e.courseid = :ej401_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu401_u.id LEFT JOIN {groups_members} gm401_gm2 ON (gm401_gm2.userid = eu401_u.id AND gm401_gm2.groupid = :gm401_2406) WHERE 1 = 1 AND ej401_ue.status = :ej401_active AND ej401_e.status = :ej401_enabled AND ej401_ue.timestart < :ej401_now1 AND (ej401_ue.timeend = 0 OR ej401_ue.timeend > :ej401_now2) AND eu401_u.deleted = 0 AND eu401_u.id <> :eu401_guestid AND gm401_gm2.userid IS NOT NULL AND eu401_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu402_u.id FROM {user} eu402_u JOIN {user_enrolments} ej402_ue ON ej402_ue.userid = eu402_u.id JOIN {enrol} ej402_e ON (ej402_e.id = ej402_ue.enrolid AND ej402_e.courseid = :ej402_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu402_u.id LEFT JOIN {groups_members} gm402_gm2 ON (gm402_gm2.userid = eu402_u.id AND gm402_gm2.groupid = :gm402_2412) WHERE 1 = 1 AND ej402_ue.status = :ej402_active AND ej402_e.status = :ej402_enabled AND ej402_ue.timestart < :ej402_now1 AND (ej402_ue.timeend = 0 OR ej402_ue.timeend > :ej402_now2) AND eu402_u.deleted = 0 AND eu402_u.id <> :eu402_guestid AND gm402_gm2.userid IS NOT NULL AND eu402_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu403_u.id FROM {user} eu403_u JOIN {user_enrolments} ej403_ue ON ej403_ue.userid = eu403_u.id JOIN {enrol} ej403_e ON (ej403_e.id = ej403_ue.enrolid AND ej403_e.courseid = :ej403_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu403_u.id LEFT JOIN {groups_members} gm403_gm2 ON (gm403_gm2.userid = eu403_u.id AND gm403_gm2.groupid = :gm403_2418) WHERE 1 = 1 AND ej403_ue.status = :ej403_active AND ej403_e.status = :ej403_enabled AND ej403_ue.timestart < :ej403_now1 AND (ej403_ue.timeend = 0 OR ej403_ue.timeend > :ej403_now2) AND eu403_u.deleted = 0 AND eu403_u.id <> :eu403_guestid AND gm403_gm2.userid IS NOT NULL AND eu403_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu404_u.id FROM {user} eu404_u JOIN {user_enrolments} ej404_ue ON ej404_ue.userid = eu404_u.id JOIN {enrol} ej404_e ON (ej404_e.id = ej404_ue.enrolid AND ej404_e.courseid = :ej404_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu404_u.id LEFT JOIN {groups_members} gm404_gm2 ON (gm404_gm2.userid = eu404_u.id AND gm404_gm2.groupid = :gm404_2424) WHERE 1 = 1 AND ej404_ue.status = :ej404_active AND ej404_e.status = :ej404_enabled AND ej404_ue.timestart < :ej404_now1 AND (ej404_ue.timeend = 0 OR ej404_ue.timeend > :ej404_now2) AND eu404_u.deleted = 0 AND eu404_u.id <> :eu404_guestid AND gm404_gm2.userid IS NOT NULL AND eu404_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu405_u.id FROM {user} eu405_u JOIN {user_enrolments} ej405_ue ON ej405_ue.userid = eu405_u.id JOIN {enrol} ej405_e ON (ej405_e.id = ej405_ue.enrolid AND ej405_e.courseid = :ej405_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu405_u.id LEFT JOIN {groups_members} gm405_gm2 ON (gm405_gm2.userid = eu405_u.id AND gm405_gm2.groupid = :gm405_2430) WHERE 1 = 1 AND ej405_ue.status = :ej405_active AND ej405_e.status = :ej405_enabled AND ej405_ue.timestart < :ej405_now1 AND (ej405_ue.timeend = 0 OR ej405_ue.timeend > :ej405_now2) AND eu405_u.deleted = 0 AND eu405_u.id <> :eu405_guestid AND gm405_gm2.userid IS NOT NULL AND eu405_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu406_u.id FROM {user} eu406_u JOIN {user_enrolments} ej406_ue ON ej406_ue.userid = eu406_u.id JOIN {enrol} ej406_e ON (ej406_e.id = ej406_ue.enrolid AND ej406_e.courseid = :ej406_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu406_u.id LEFT JOIN {groups_members} gm406_gm2 ON (gm406_gm2.userid = eu406_u.id AND gm406_gm2.groupid = :gm406_2436) WHERE 1 = 1 AND ej406_ue.status = :ej406_active AND ej406_e.status = :ej406_enabled AND ej406_ue.timestart < :ej406_now1 AND (ej406_ue.timeend = 0 OR ej406_ue.timeend > :ej406_now2) AND eu406_u.deleted = 0 AND eu406_u.id <> :eu406_guestid AND gm406_gm2.userid IS NOT NULL AND eu406_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu407_u.id FROM {user} eu407_u JOIN {user_enrolments} ej407_ue ON ej407_ue.userid = eu407_u.id JOIN {enrol} ej407_e ON (ej407_e.id = ej407_ue.enrolid AND ej407_e.courseid = :ej407_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu407_u.id LEFT JOIN {groups_members} gm407_gm2 ON (gm407_gm2.userid = eu407_u.id AND gm407_gm2.groupid = :gm407_2442) WHERE 1 = 1 AND ej407_ue.status = :ej407_active AND ej407_e.status = :ej407_enabled AND ej407_ue.timestart < :ej407_now1 AND (ej407_ue.timeend = 0 OR ej407_ue.timeend > :ej407_now2) AND eu407_u.deleted = 0 AND eu407_u.id <> :eu407_guestid AND gm407_gm2.userid IS NOT NULL AND eu407_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu408_u.id FROM {user} eu408_u JOIN {user_enrolments} ej408_ue ON ej408_ue.userid = eu408_u.id JOIN {enrol} ej408_e ON (ej408_e.id = ej408_ue.enrolid AND ej408_e.courseid = :ej408_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu408_u.id LEFT JOIN {groups_members} gm408_gm2 ON (gm408_gm2.userid = eu408_u.id AND gm408_gm2.groupid = :gm408_2448) WHERE 1 = 1 AND ej408_ue.status = :ej408_active AND ej408_e.status = :ej408_enabled AND ej408_ue.timestart < :ej408_now1 AND (ej408_ue.timeend = 0 OR ej408_ue.timeend > :ej408_now2) AND eu408_u.deleted = 0 AND eu408_u.id <> :eu408_guestid AND gm408_gm2.userid IS NOT NULL AND eu408_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu409_u.id FROM {user} eu409_u JOIN {user_enrolments} ej409_ue ON ej409_ue.userid = eu409_u.id JOIN {enrol} ej409_e ON (ej409_e.id = ej409_ue.enrolid AND ej409_e.courseid = :ej409_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu409_u.id LEFT JOIN {groups_members} gm409_gm2 ON (gm409_gm2.userid = eu409_u.id AND gm409_gm2.groupid = :gm409_2454) WHERE 1 = 1 AND ej409_ue.status = :ej409_active AND ej409_e.status = :ej409_enabled AND ej409_ue.timestart < :ej409_now1 AND (ej409_ue.timeend = 0 OR ej409_ue.timeend > :ej409_now2) AND eu409_u.deleted = 0 AND eu409_u.id <> :eu409_guestid AND gm409_gm2.userid IS NOT NULL AND eu409_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu410_u.id FROM {user} eu410_u JOIN {user_enrolments} ej410_ue ON ej410_ue.userid = eu410_u.id JOIN {enrol} ej410_e ON (ej410_e.id = ej410_ue.enrolid AND ej410_e.courseid = :ej410_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu410_u.id LEFT JOIN {groups_members} gm410_gm2 ON (gm410_gm2.userid = eu410_u.id AND gm410_gm2.groupid = :gm410_2460) WHERE 1 = 1 AND ej410_ue.status = :ej410_active AND ej410_e.status = :ej410_enabled AND ej410_ue.timestart < :ej410_now1 AND (ej410_ue.timeend = 0 OR ej410_ue.timeend > :ej410_now2) AND eu410_u.deleted = 0 AND eu410_u.id <> :eu410_guestid AND gm410_gm2.userid IS NOT NULL AND eu410_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu411_u.id FROM {user} eu411_u JOIN {user_enrolments} ej411_ue ON ej411_ue.userid = eu411_u.id JOIN {enrol} ej411_e ON (ej411_e.id = ej411_ue.enrolid AND ej411_e.courseid = :ej411_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu411_u.id LEFT JOIN {groups_members} gm411_gm2 ON (gm411_gm2.userid = eu411_u.id AND gm411_gm2.groupid = :gm411_2466) WHERE 1 = 1 AND ej411_ue.status = :ej411_active AND ej411_e.status = :ej411_enabled AND ej411_ue.timestart < :ej411_now1 AND (ej411_ue.timeend = 0 OR ej411_ue.timeend > :ej411_now2) AND eu411_u.deleted = 0 AND eu411_u.id <> :eu411_guestid AND gm411_gm2.userid IS NOT NULL AND eu411_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu412_u.id FROM {user} eu412_u JOIN {user_enrolments} ej412_ue ON ej412_ue.userid = eu412_u.id JOIN {enrol} ej412_e ON (ej412_e.id = ej412_ue.enrolid AND ej412_e.courseid = :ej412_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu412_u.id LEFT JOIN {groups_members} gm412_gm2 ON (gm412_gm2.userid = eu412_u.id AND gm412_gm2.groupid = :gm412_2472) WHERE 1 = 1 AND ej412_ue.status = :ej412_active AND ej412_e.status = :ej412_enabled AND ej412_ue.timestart < :ej412_now1 AND (ej412_ue.timeend = 0 OR ej412_ue.timeend > :ej412_now2) AND eu412_u.deleted = 0 AND eu412_u.id <> :eu412_guestid AND gm412_gm2.userid IS NOT NULL AND eu412_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu413_u.id FROM {user} eu413_u JOIN {user_enrolments} ej413_ue ON ej413_ue.userid = eu413_u.id JOIN {enrol} ej413_e ON (ej413_e.id = ej413_ue.enrolid AND ej413_e.courseid = :ej413_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu413_u.id LEFT JOIN {groups_members} gm413_gm2 ON (gm413_gm2.userid = eu413_u.id AND gm413_gm2.groupid = :gm413_2478) WHERE 1 = 1 AND ej413_ue.status = :ej413_active AND ej413_e.status = :ej413_enabled AND ej413_ue.timestart < :ej413_now1 AND (ej413_ue.timeend = 0 OR ej413_ue.timeend > :ej413_now2) AND eu413_u.deleted = 0 AND eu413_u.id <> :eu413_guestid AND gm413_gm2.userid IS NOT NULL AND eu413_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu414_u.id FROM {user} eu414_u JOIN {user_enrolments} ej414_ue ON ej414_ue.userid = eu414_u.id JOIN {enrol} ej414_e ON (ej414_e.id = ej414_ue.enrolid AND ej414_e.courseid = :ej414_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu414_u.id LEFT JOIN {groups_members} gm414_gm2 ON (gm414_gm2.userid = eu414_u.id AND gm414_gm2.groupid = :gm414_2484) WHERE 1 = 1 AND ej414_ue.status = :ej414_active AND ej414_e.status = :ej414_enabled AND ej414_ue.timestart < :ej414_now1 AND (ej414_ue.timeend = 0 OR ej414_ue.timeend > :ej414_now2) AND eu414_u.deleted = 0 AND eu414_u.id <> :eu414_guestid AND gm414_gm2.userid IS NOT NULL AND eu414_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu415_u.id FROM {user} eu415_u JOIN {user_enrolments} ej415_ue ON ej415_ue.userid = eu415_u.id JOIN {enrol} ej415_e ON (ej415_e.id = ej415_ue.enrolid AND ej415_e.courseid = :ej415_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu415_u.id LEFT JOIN {groups_members} gm415_gm2 ON (gm415_gm2.userid = eu415_u.id AND gm415_gm2.groupid = :gm415_2490) WHERE 1 = 1 AND ej415_ue.status = :ej415_active AND ej415_e.status = :ej415_enabled AND ej415_ue.timestart < :ej415_now1 AND (ej415_ue.timeend = 0 OR ej415_ue.timeend > :ej415_now2) AND eu415_u.deleted = 0 AND eu415_u.id <> :eu415_guestid AND gm415_gm2.userid IS NOT NULL AND eu415_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu416_u.id FROM {user} eu416_u JOIN {user_enrolments} ej416_ue ON ej416_ue.userid = eu416_u.id JOIN {enrol} ej416_e ON (ej416_e.id = ej416_ue.enrolid AND ej416_e.courseid = :ej416_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu416_u.id LEFT JOIN {groups_members} gm416_gm2 ON (gm416_gm2.userid = eu416_u.id AND gm416_gm2.groupid = :gm416_2496) WHERE 1 = 1 AND ej416_ue.status = :ej416_active AND ej416_e.status = :ej416_enabled AND ej416_ue.timestart < :ej416_now1 AND (ej416_ue.timeend = 0 OR ej416_ue.timeend > :ej416_now2) AND eu416_u.deleted = 0 AND eu416_u.id <> :eu416_guestid AND gm416_gm2.userid IS NOT NULL AND eu416_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu417_u.id FROM {user} eu417_u JOIN {user_enrolments} ej417_ue ON ej417_ue.userid = eu417_u.id JOIN {enrol} ej417_e ON (ej417_e.id = ej417_ue.enrolid AND ej417_e.courseid = :ej417_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu417_u.id LEFT JOIN {groups_members} gm417_gm2 ON (gm417_gm2.userid = eu417_u.id AND gm417_gm2.groupid = :gm417_2502) WHERE 1 = 1 AND ej417_ue.status = :ej417_active AND ej417_e.status = :ej417_enabled AND ej417_ue.timestart < :ej417_now1 AND (ej417_ue.timeend = 0 OR ej417_ue.timeend > :ej417_now2) AND eu417_u.deleted = 0 AND eu417_u.id <> :eu417_guestid AND gm417_gm2.userid IS NOT NULL AND eu417_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu418_u.id FROM {user} eu418_u JOIN {user_enrolments} ej418_ue ON ej418_ue.userid = eu418_u.id JOIN {enrol} ej418_e ON (ej418_e.id = ej418_ue.enrolid AND ej418_e.courseid = :ej418_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu418_u.id LEFT JOIN {groups_members} gm418_gm2 ON (gm418_gm2.userid = eu418_u.id AND gm418_gm2.groupid = :gm418_2508) WHERE 1 = 1 AND ej418_ue.status = :ej418_active AND ej418_e.status = :ej418_enabled AND ej418_ue.timestart < :ej418_now1 AND (ej418_ue.timeend = 0 OR ej418_ue.timeend > :ej418_now2) AND eu418_u.deleted = 0 AND eu418_u.id <> :eu418_guestid AND gm418_gm2.userid IS NOT NULL AND eu418_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu419_u.id FROM {user} eu419_u JOIN {user_enrolments} ej419_ue ON ej419_ue.userid = eu419_u.id JOIN {enrol} ej419_e ON (ej419_e.id = ej419_ue.enrolid AND ej419_e.courseid = :ej419_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu419_u.id LEFT JOIN {groups_members} gm419_gm2 ON (gm419_gm2.userid = eu419_u.id AND gm419_gm2.groupid = :gm419_2514) WHERE 1 = 1 AND ej419_ue.status = :ej419_active AND ej419_e.status = :ej419_enabled AND ej419_ue.timestart < :ej419_now1 AND (ej419_ue.timeend = 0 OR ej419_ue.timeend > :ej419_now2) AND eu419_u.deleted = 0 AND eu419_u.id <> :eu419_guestid AND gm419_gm2.userid IS NOT NULL AND eu419_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu420_u.id FROM {user} eu420_u JOIN {user_enrolments} ej420_ue ON ej420_ue.userid = eu420_u.id JOIN {enrol} ej420_e ON (ej420_e.id = ej420_ue.enrolid AND ej420_e.courseid = :ej420_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu420_u.id LEFT JOIN {groups_members} gm420_gm2 ON (gm420_gm2.userid = eu420_u.id AND gm420_gm2.groupid = :gm420_2520) WHERE 1 = 1 AND ej420_ue.status = :ej420_active AND ej420_e.status = :ej420_enabled AND ej420_ue.timestart < :ej420_now1 AND (ej420_ue.timeend = 0 OR ej420_ue.timeend > :ej420_now2) AND eu420_u.deleted = 0 AND eu420_u.id <> :eu420_guestid AND gm420_gm2.userid IS NOT NULL AND eu420_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu421_u.id FROM {user} eu421_u JOIN {user_enrolments} ej421_ue ON ej421_ue.userid = eu421_u.id JOIN {enrol} ej421_e ON (ej421_e.id = ej421_ue.enrolid AND ej421_e.courseid = :ej421_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu421_u.id LEFT JOIN {groups_members} gm421_gm2 ON (gm421_gm2.userid = eu421_u.id AND gm421_gm2.groupid = :gm421_2526) WHERE 1 = 1 AND ej421_ue.status = :ej421_active AND ej421_e.status = :ej421_enabled AND ej421_ue.timestart < :ej421_now1 AND (ej421_ue.timeend = 0 OR ej421_ue.timeend > :ej421_now2) AND eu421_u.deleted = 0 AND eu421_u.id <> :eu421_guestid AND gm421_gm2.userid IS NOT NULL AND eu421_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu422_u.id FROM {user} eu422_u JOIN {user_enrolments} ej422_ue ON ej422_ue.userid = eu422_u.id JOIN {enrol} ej422_e ON (ej422_e.id = ej422_ue.enrolid AND ej422_e.courseid = :ej422_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu422_u.id LEFT JOIN {groups_members} gm422_gm2 ON (gm422_gm2.userid = eu422_u.id AND gm422_gm2.groupid = :gm422_2532) WHERE 1 = 1 AND ej422_ue.status = :ej422_active AND ej422_e.status = :ej422_enabled AND ej422_ue.timestart < :ej422_now1 AND (ej422_ue.timeend = 0 OR ej422_ue.timeend > :ej422_now2) AND eu422_u.deleted = 0 AND eu422_u.id <> :eu422_guestid AND gm422_gm2.userid IS NOT NULL AND eu422_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu423_u.id FROM {user} eu423_u JOIN {user_enrolments} ej423_ue ON ej423_ue.userid = eu423_u.id JOIN {enrol} ej423_e ON (ej423_e.id = ej423_ue.enrolid AND ej423_e.courseid = :ej423_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu423_u.id LEFT JOIN {groups_members} gm423_gm2 ON (gm423_gm2.userid = eu423_u.id AND gm423_gm2.groupid = :gm423_2538) WHERE 1 = 1 AND ej423_ue.status = :ej423_active AND ej423_e.status = :ej423_enabled AND ej423_ue.timestart < :ej423_now1 AND (ej423_ue.timeend = 0 OR ej423_ue.timeend > :ej423_now2) AND eu423_u.deleted = 0 AND eu423_u.id <> :eu423_guestid AND gm423_gm2.userid IS NOT NULL AND eu423_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu424_u.id FROM {user} eu424_u JOIN {user_enrolments} ej424_ue ON ej424_ue.userid = eu424_u.id JOIN {enrol} ej424_e ON (ej424_e.id = ej424_ue.enrolid AND ej424_e.courseid = :ej424_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu424_u.id LEFT JOIN {groups_members} gm424_gm2 ON (gm424_gm2.userid = eu424_u.id AND gm424_gm2.groupid = :gm424_2544) WHERE 1 = 1 AND ej424_ue.status = :ej424_active AND ej424_e.status = :ej424_enabled AND ej424_ue.timestart < :ej424_now1 AND (ej424_ue.timeend = 0 OR ej424_ue.timeend > :ej424_now2) AND eu424_u.deleted = 0 AND eu424_u.id <> :eu424_guestid AND gm424_gm2.userid IS NOT NULL AND eu424_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu425_u.id FROM {user} eu425_u JOIN {user_enrolments} ej425_ue ON ej425_ue.userid = eu425_u.id JOIN {enrol} ej425_e ON (ej425_e.id = ej425_ue.enrolid AND ej425_e.courseid = :ej425_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu425_u.id LEFT JOIN {groups_members} gm425_gm2 ON (gm425_gm2.userid = eu425_u.id AND gm425_gm2.groupid = :gm425_2550) WHERE 1 = 1 AND ej425_ue.status = :ej425_active AND ej425_e.status = :ej425_enabled AND ej425_ue.timestart < :ej425_now1 AND (ej425_ue.timeend = 0 OR ej425_ue.timeend > :ej425_now2) AND eu425_u.deleted = 0 AND eu425_u.id <> :eu425_guestid AND gm425_gm2.userid IS NOT NULL AND eu425_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu426_u.id FROM {user} eu426_u JOIN {user_enrolments} ej426_ue ON ej426_ue.userid = eu426_u.id JOIN {enrol} ej426_e ON (ej426_e.id = ej426_ue.enrolid AND ej426_e.courseid = :ej426_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu426_u.id LEFT JOIN {groups_members} gm426_gm2 ON (gm426_gm2.userid = eu426_u.id AND gm426_gm2.groupid = :gm426_2556) WHERE 1 = 1 AND ej426_ue.status = :ej426_active AND ej426_e.status = :ej426_enabled AND ej426_ue.timestart < :ej426_now1 AND (ej426_ue.timeend = 0 OR ej426_ue.timeend > :ej426_now2) AND eu426_u.deleted = 0 AND eu426_u.id <> :eu426_guestid AND gm426_gm2.userid IS NOT NULL AND eu426_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu427_u.id FROM {user} eu427_u JOIN {user_enrolments} ej427_ue ON ej427_ue.userid = eu427_u.id JOIN {enrol} ej427_e ON (ej427_e.id = ej427_ue.enrolid AND ej427_e.courseid = :ej427_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu427_u.id LEFT JOIN {groups_members} gm427_gm2 ON (gm427_gm2.userid = eu427_u.id AND gm427_gm2.groupid = :gm427_2562) WHERE 1 = 1 AND ej427_ue.status = :ej427_active AND ej427_e.status = :ej427_enabled AND ej427_ue.timestart < :ej427_now1 AND (ej427_ue.timeend = 0 OR ej427_ue.timeend > :ej427_now2) AND eu427_u.deleted = 0 AND eu427_u.id <> :eu427_guestid AND gm427_gm2.userid IS NOT NULL AND eu427_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu428_u.id FROM {user} eu428_u JOIN {user_enrolments} ej428_ue ON ej428_ue.userid = eu428_u.id JOIN {enrol} ej428_e ON (ej428_e.id = ej428_ue.enrolid AND ej428_e.courseid = :ej428_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu428_u.id LEFT JOIN {groups_members} gm428_gm2 ON (gm428_gm2.userid = eu428_u.id AND gm428_gm2.groupid = :gm428_2568) WHERE 1 = 1 AND ej428_ue.status = :ej428_active AND ej428_e.status = :ej428_enabled AND ej428_ue.timestart < :ej428_now1 AND (ej428_ue.timeend = 0 OR ej428_ue.timeend > :ej428_now2) AND eu428_u.deleted = 0 AND eu428_u.id <> :eu428_guestid AND gm428_gm2.userid IS NOT NULL AND eu428_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu429_u.id FROM {user} eu429_u JOIN {user_enrolments} ej429_ue ON ej429_ue.userid = eu429_u.id JOIN {enrol} ej429_e ON (ej429_e.id = ej429_ue.enrolid AND ej429_e.courseid = :ej429_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu429_u.id LEFT JOIN {groups_members} gm429_gm2 ON (gm429_gm2.userid = eu429_u.id AND gm429_gm2.groupid = :gm429_2574) WHERE 1 = 1 AND ej429_ue.status = :ej429_active AND ej429_e.status = :ej429_enabled AND ej429_ue.timestart < :ej429_now1 AND (ej429_ue.timeend = 0 OR ej429_ue.timeend > :ej429_now2) AND eu429_u.deleted = 0 AND eu429_u.id <> :eu429_guestid AND gm429_gm2.userid IS NOT NULL AND eu429_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu430_u.id FROM {user} eu430_u JOIN {user_enrolments} ej430_ue ON ej430_ue.userid = eu430_u.id JOIN {enrol} ej430_e ON (ej430_e.id = ej430_ue.enrolid AND ej430_e.courseid = :ej430_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu430_u.id LEFT JOIN {groups_members} gm430_gm2 ON (gm430_gm2.userid = eu430_u.id AND gm430_gm2.groupid = :gm430_2580) WHERE 1 = 1 AND ej430_ue.status = :ej430_active AND ej430_e.status = :ej430_enabled AND ej430_ue.timestart < :ej430_now1 AND (ej430_ue.timeend = 0 OR ej430_ue.timeend > :ej430_now2) AND eu430_u.deleted = 0 AND eu430_u.id <> :eu430_guestid AND gm430_gm2.userid IS NOT NULL AND eu430_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu431_u.id FROM {user} eu431_u JOIN {user_enrolments} ej431_ue ON ej431_ue.userid = eu431_u.id JOIN {enrol} ej431_e ON (ej431_e.id = ej431_ue.enrolid AND ej431_e.courseid = :ej431_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu431_u.id LEFT JOIN {groups_members} gm431_gm2 ON (gm431_gm2.userid = eu431_u.id AND gm431_gm2.groupid = :gm431_2586) WHERE 1 = 1 AND ej431_ue.status = :ej431_active AND ej431_e.status = :ej431_enabled AND ej431_ue.timestart < :ej431_now1 AND (ej431_ue.timeend = 0 OR ej431_ue.timeend > :ej431_now2) AND eu431_u.deleted = 0 AND eu431_u.id <> :eu431_guestid AND gm431_gm2.userid IS NOT NULL AND eu431_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu432_u.id FROM {user} eu432_u JOIN {user_enrolments} ej432_ue ON ej432_ue.userid = eu432_u.id JOIN {enrol} ej432_e ON (ej432_e.id = ej432_ue.enrolid AND ej432_e.courseid = :ej432_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu432_u.id LEFT JOIN {groups_members} gm432_gm2 ON (gm432_gm2.userid = eu432_u.id AND gm432_gm2.groupid = :gm432_2592) WHERE 1 = 1 AND ej432_ue.status = :ej432_active AND ej432_e.status = :ej432_enabled AND ej432_ue.timestart < :ej432_now1 AND (ej432_ue.timeend = 0 OR ej432_ue.timeend > :ej432_now2) AND eu432_u.deleted = 0 AND eu432_u.id <> :eu432_guestid AND gm432_gm2.userid IS NOT NULL AND eu432_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu433_u.id FROM {user} eu433_u JOIN {user_enrolments} ej433_ue ON ej433_ue.userid = eu433_u.id JOIN {enrol} ej433_e ON (ej433_e.id = ej433_ue.enrolid AND ej433_e.courseid = :ej433_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu433_u.id LEFT JOIN {groups_members} gm433_gm2 ON (gm433_gm2.userid = eu433_u.id AND gm433_gm2.groupid = :gm433_2598) WHERE 1 = 1 AND ej433_ue.status = :ej433_active AND ej433_e.status = :ej433_enabled AND ej433_ue.timestart < :ej433_now1 AND (ej433_ue.timeend = 0 OR ej433_ue.timeend > :ej433_now2) AND eu433_u.deleted = 0 AND eu433_u.id <> :eu433_guestid AND gm433_gm2.userid IS NOT NULL AND eu433_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu434_u.id FROM {user} eu434_u JOIN {user_enrolments} ej434_ue ON ej434_ue.userid = eu434_u.id JOIN {enrol} ej434_e ON (ej434_e.id = ej434_ue.enrolid AND ej434_e.courseid = :ej434_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu434_u.id LEFT JOIN {groups_members} gm434_gm2 ON (gm434_gm2.userid = eu434_u.id AND gm434_gm2.groupid = :gm434_2604) WHERE 1 = 1 AND ej434_ue.status = :ej434_active AND ej434_e.status = :ej434_enabled AND ej434_ue.timestart < :ej434_now1 AND (ej434_ue.timeend = 0 OR ej434_ue.timeend > :ej434_now2) AND eu434_u.deleted = 0 AND eu434_u.id <> :eu434_guestid AND gm434_gm2.userid IS NOT NULL AND eu434_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu435_u.id FROM {user} eu435_u JOIN {user_enrolments} ej435_ue ON ej435_ue.userid = eu435_u.id JOIN {enrol} ej435_e ON (ej435_e.id = ej435_ue.enrolid AND ej435_e.courseid = :ej435_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu435_u.id LEFT JOIN {groups_members} gm435_gm2 ON (gm435_gm2.userid = eu435_u.id AND gm435_gm2.groupid = :gm435_2610) WHERE 1 = 1 AND ej435_ue.status = :ej435_active AND ej435_e.status = :ej435_enabled AND ej435_ue.timestart < :ej435_now1 AND (ej435_ue.timeend = 0 OR ej435_ue.timeend > :ej435_now2) AND eu435_u.deleted = 0 AND eu435_u.id <> :eu435_guestid AND gm435_gm2.userid IS NOT NULL AND eu435_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu436_u.id FROM {user} eu436_u JOIN {user_enrolments} ej436_ue ON ej436_ue.userid = eu436_u.id JOIN {enrol} ej436_e ON (ej436_e.id = ej436_ue.enrolid AND ej436_e.courseid = :ej436_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu436_u.id LEFT JOIN {groups_members} gm436_gm2 ON (gm436_gm2.userid = eu436_u.id AND gm436_gm2.groupid = :gm436_2616) WHERE 1 = 1 AND ej436_ue.status = :ej436_active AND ej436_e.status = :ej436_enabled AND ej436_ue.timestart < :ej436_now1 AND (ej436_ue.timeend = 0 OR ej436_ue.timeend > :ej436_now2) AND eu436_u.deleted = 0 AND eu436_u.id <> :eu436_guestid AND gm436_gm2.userid IS NOT NULL AND eu436_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu437_u.id FROM {user} eu437_u JOIN {user_enrolments} ej437_ue ON ej437_ue.userid = eu437_u.id JOIN {enrol} ej437_e ON (ej437_e.id = ej437_ue.enrolid AND ej437_e.courseid = :ej437_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu437_u.id LEFT JOIN {groups_members} gm437_gm2 ON (gm437_gm2.userid = eu437_u.id AND gm437_gm2.groupid = :gm437_2622) WHERE 1 = 1 AND ej437_ue.status = :ej437_active AND ej437_e.status = :ej437_enabled AND ej437_ue.timestart < :ej437_now1 AND (ej437_ue.timeend = 0 OR ej437_ue.timeend > :ej437_now2) AND eu437_u.deleted = 0 AND eu437_u.id <> :eu437_guestid AND gm437_gm2.userid IS NOT NULL AND eu437_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu438_u.id FROM {user} eu438_u JOIN {user_enrolments} ej438_ue ON ej438_ue.userid = eu438_u.id JOIN {enrol} ej438_e ON (ej438_e.id = ej438_ue.enrolid AND ej438_e.courseid = :ej438_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu438_u.id LEFT JOIN {groups_members} gm438_gm2 ON (gm438_gm2.userid = eu438_u.id AND gm438_gm2.groupid = :gm438_2628) WHERE 1 = 1 AND ej438_ue.status = :ej438_active AND ej438_e.status = :ej438_enabled AND ej438_ue.timestart < :ej438_now1 AND (ej438_ue.timeend = 0 OR ej438_ue.timeend > :ej438_now2) AND eu438_u.deleted = 0 AND eu438_u.id <> :eu438_guestid AND gm438_gm2.userid IS NOT NULL AND eu438_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu439_u.id FROM {user} eu439_u JOIN {user_enrolments} ej439_ue ON ej439_ue.userid = eu439_u.id JOIN {enrol} ej439_e ON (ej439_e.id = ej439_ue.enrolid AND ej439_e.courseid = :ej439_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu439_u.id LEFT JOIN {groups_members} gm439_gm2 ON (gm439_gm2.userid = eu439_u.id AND gm439_gm2.groupid = :gm439_2634) WHERE 1 = 1 AND ej439_ue.status = :ej439_active AND ej439_e.status = :ej439_enabled AND ej439_ue.timestart < :ej439_now1 AND (ej439_ue.timeend = 0 OR ej439_ue.timeend > :ej439_now2) AND eu439_u.deleted = 0 AND eu439_u.id <> :eu439_guestid AND gm439_gm2.userid IS NOT NULL AND eu439_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu440_u.id FROM {user} eu440_u JOIN {user_enrolments} ej440_ue ON ej440_ue.userid = eu440_u.id JOIN {enrol} ej440_e ON (ej440_e.id = ej440_ue.enrolid AND ej440_e.courseid = :ej440_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu440_u.id LEFT JOIN {groups_members} gm440_gm2 ON (gm440_gm2.userid = eu440_u.id AND gm440_gm2.groupid = :gm440_2640) WHERE 1 = 1 AND ej440_ue.status = :ej440_active AND ej440_e.status = :ej440_enabled AND ej440_ue.timestart < :ej440_now1 AND (ej440_ue.timeend = 0 OR ej440_ue.timeend > :ej440_now2) AND eu440_u.deleted = 0 AND eu440_u.id <> :eu440_guestid AND gm440_gm2.userid IS NOT NULL AND eu440_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu441_u.id FROM {user} eu441_u JOIN {user_enrolments} ej441_ue ON ej441_ue.userid = eu441_u.id JOIN {enrol} ej441_e ON (ej441_e.id = ej441_ue.enrolid AND ej441_e.courseid = :ej441_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu441_u.id LEFT JOIN {groups_members} gm441_gm2 ON (gm441_gm2.userid = eu441_u.id AND gm441_gm2.groupid = :gm441_2646) WHERE 1 = 1 AND ej441_ue.status = :ej441_active AND ej441_e.status = :ej441_enabled AND ej441_ue.timestart < :ej441_now1 AND (ej441_ue.timeend = 0 OR ej441_ue.timeend > :ej441_now2) AND eu441_u.deleted = 0 AND eu441_u.id <> :eu441_guestid AND gm441_gm2.userid IS NOT NULL AND eu441_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu442_u.id FROM {user} eu442_u JOIN {user_enrolments} ej442_ue ON ej442_ue.userid = eu442_u.id JOIN {enrol} ej442_e ON (ej442_e.id = ej442_ue.enrolid AND ej442_e.courseid = :ej442_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu442_u.id LEFT JOIN {groups_members} gm442_gm2 ON (gm442_gm2.userid = eu442_u.id AND gm442_gm2.groupid = :gm442_2652) WHERE 1 = 1 AND ej442_ue.status = :ej442_active AND ej442_e.status = :ej442_enabled AND ej442_ue.timestart < :ej442_now1 AND (ej442_ue.timeend = 0 OR ej442_ue.timeend > :ej442_now2) AND eu442_u.deleted = 0 AND eu442_u.id <> :eu442_guestid AND gm442_gm2.userid IS NOT NULL AND eu442_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu443_u.id FROM {user} eu443_u JOIN {user_enrolments} ej443_ue ON ej443_ue.userid = eu443_u.id JOIN {enrol} ej443_e ON (ej443_e.id = ej443_ue.enrolid AND ej443_e.courseid = :ej443_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu443_u.id LEFT JOIN {groups_members} gm443_gm2 ON (gm443_gm2.userid = eu443_u.id AND gm443_gm2.groupid = :gm443_2658) WHERE 1 = 1 AND ej443_ue.status = :ej443_active AND ej443_e.status = :ej443_enabled AND ej443_ue.timestart < :ej443_now1 AND (ej443_ue.timeend = 0 OR ej443_ue.timeend > :ej443_now2) AND eu443_u.deleted = 0 AND eu443_u.id <> :eu443_guestid AND gm443_gm2.userid IS NOT NULL AND eu443_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu444_u.id FROM {user} eu444_u JOIN {user_enrolments} ej444_ue ON ej444_ue.userid = eu444_u.id JOIN {enrol} ej444_e ON (ej444_e.id = ej444_ue.enrolid AND ej444_e.courseid = :ej444_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu444_u.id LEFT JOIN {groups_members} gm444_gm2 ON (gm444_gm2.userid = eu444_u.id AND gm444_gm2.groupid = :gm444_2664) WHERE 1 = 1 AND ej444_ue.status = :ej444_active AND ej444_e.status = :ej444_enabled AND ej444_ue.timestart < :ej444_now1 AND (ej444_ue.timeend = 0 OR ej444_ue.timeend > :ej444_now2) AND eu444_u.deleted = 0 AND eu444_u.id <> :eu444_guestid AND gm444_gm2.userid IS NOT NULL AND eu444_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu445_u.id FROM {user} eu445_u JOIN {user_enrolments} ej445_ue ON ej445_ue.userid = eu445_u.id JOIN {enrol} ej445_e ON (ej445_e.id = ej445_ue.enrolid AND ej445_e.courseid = :ej445_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu445_u.id LEFT JOIN {groups_members} gm445_gm2 ON (gm445_gm2.userid = eu445_u.id AND gm445_gm2.groupid = :gm445_2670) WHERE 1 = 1 AND ej445_ue.status = :ej445_active AND ej445_e.status = :ej445_enabled AND ej445_ue.timestart < :ej445_now1 AND (ej445_ue.timeend = 0 OR ej445_ue.timeend > :ej445_now2) AND eu445_u.deleted = 0 AND eu445_u.id <> :eu445_guestid AND gm445_gm2.userid IS NOT NULL AND eu445_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu446_u.id FROM {user} eu446_u JOIN {user_enrolments} ej446_ue ON ej446_ue.userid = eu446_u.id JOIN {enrol} ej446_e ON (ej446_e.id = ej446_ue.enrolid AND ej446_e.courseid = :ej446_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu446_u.id LEFT JOIN {groups_members} gm446_gm2 ON (gm446_gm2.userid = eu446_u.id AND gm446_gm2.groupid = :gm446_2676) WHERE 1 = 1 AND ej446_ue.status = :ej446_active AND ej446_e.status = :ej446_enabled AND ej446_ue.timestart < :ej446_now1 AND (ej446_ue.timeend = 0 OR ej446_ue.timeend > :ej446_now2) AND eu446_u.deleted = 0 AND eu446_u.id <> :eu446_guestid AND gm446_gm2.userid IS NOT NULL AND eu446_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu447_u.id FROM {user} eu447_u JOIN {user_enrolments} ej447_ue ON ej447_ue.userid = eu447_u.id JOIN {enrol} ej447_e ON (ej447_e.id = ej447_ue.enrolid AND ej447_e.courseid = :ej447_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu447_u.id LEFT JOIN {groups_members} gm447_gm2 ON (gm447_gm2.userid = eu447_u.id AND gm447_gm2.groupid = :gm447_2682) WHERE 1 = 1 AND ej447_ue.status = :ej447_active AND ej447_e.status = :ej447_enabled AND ej447_ue.timestart < :ej447_now1 AND (ej447_ue.timeend = 0 OR ej447_ue.timeend > :ej447_now2) AND eu447_u.deleted = 0 AND eu447_u.id <> :eu447_guestid AND gm447_gm2.userid IS NOT NULL AND eu447_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu448_u.id FROM {user} eu448_u JOIN {user_enrolments} ej448_ue ON ej448_ue.userid = eu448_u.id JOIN {enrol} ej448_e ON (ej448_e.id = ej448_ue.enrolid AND ej448_e.courseid = :ej448_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu448_u.id LEFT JOIN {groups_members} gm448_gm2 ON (gm448_gm2.userid = eu448_u.id AND gm448_gm2.groupid = :gm448_2688) WHERE 1 = 1 AND ej448_ue.status = :ej448_active AND ej448_e.status = :ej448_enabled AND ej448_ue.timestart < :ej448_now1 AND (ej448_ue.timeend = 0 OR ej448_ue.timeend > :ej448_now2) AND eu448_u.deleted = 0 AND eu448_u.id <> :eu448_guestid AND gm448_gm2.userid IS NOT NULL AND eu448_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu449_u.id FROM {user} eu449_u JOIN {user_enrolments} ej449_ue ON ej449_ue.userid = eu449_u.id JOIN {enrol} ej449_e ON (ej449_e.id = ej449_ue.enrolid AND ej449_e.courseid = :ej449_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu449_u.id LEFT JOIN {groups_members} gm449_gm2 ON (gm449_gm2.userid = eu449_u.id AND gm449_gm2.groupid = :gm449_2694) WHERE 1 = 1 AND ej449_ue.status = :ej449_active AND ej449_e.status = :ej449_enabled AND ej449_ue.timestart < :ej449_now1 AND (ej449_ue.timeend = 0 OR ej449_ue.timeend > :ej449_now2) AND eu449_u.deleted = 0 AND eu449_u.id <> :eu449_guestid AND gm449_gm2.userid IS NOT NULL AND eu449_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu450_u.id FROM {user} eu450_u JOIN {user_enrolments} ej450_ue ON ej450_ue.userid = eu450_u.id JOIN {enrol} ej450_e ON (ej450_e.id = ej450_ue.enrolid AND ej450_e.courseid = :ej450_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu450_u.id LEFT JOIN {groups_members} gm450_gm2 ON (gm450_gm2.userid = eu450_u.id AND gm450_gm2.groupid = :gm450_2700) WHERE 1 = 1 AND ej450_ue.status = :ej450_active AND ej450_e.status = :ej450_enabled AND ej450_ue.timestart < :ej450_now1 AND (ej450_ue.timeend = 0 OR ej450_ue.timeend > :ej450_now2) AND eu450_u.deleted = 0 AND eu450_u.id <> :eu450_guestid AND gm450_gm2.userid IS NOT NULL AND eu450_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu451_u.id FROM {user} eu451_u JOIN {user_enrolments} ej451_ue ON ej451_ue.userid = eu451_u.id JOIN {enrol} ej451_e ON (ej451_e.id = ej451_ue.enrolid AND ej451_e.courseid = :ej451_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu451_u.id LEFT JOIN {groups_members} gm451_gm2 ON (gm451_gm2.userid = eu451_u.id AND gm451_gm2.groupid = :gm451_2706) WHERE 1 = 1 AND ej451_ue.status = :ej451_active AND ej451_e.status = :ej451_enabled AND ej451_ue.timestart < :ej451_now1 AND (ej451_ue.timeend = 0 OR ej451_ue.timeend > :ej451_now2) AND eu451_u.deleted = 0 AND eu451_u.id <> :eu451_guestid AND gm451_gm2.userid IS NOT NULL AND eu451_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu452_u.id FROM {user} eu452_u JOIN {user_enrolments} ej452_ue ON ej452_ue.userid = eu452_u.id JOIN {enrol} ej452_e ON (ej452_e.id = ej452_ue.enrolid AND ej452_e.courseid = :ej452_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu452_u.id LEFT JOIN {groups_members} gm452_gm2 ON (gm452_gm2.userid = eu452_u.id AND gm452_gm2.groupid = :gm452_2712) WHERE 1 = 1 AND ej452_ue.status = :ej452_active AND ej452_e.status = :ej452_enabled AND ej452_ue.timestart < :ej452_now1 AND (ej452_ue.timeend = 0 OR ej452_ue.timeend > :ej452_now2) AND eu452_u.deleted = 0 AND eu452_u.id <> :eu452_guestid AND gm452_gm2.userid IS NOT NULL AND eu452_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu453_u.id FROM {user} eu453_u JOIN {user_enrolments} ej453_ue ON ej453_ue.userid = eu453_u.id JOIN {enrol} ej453_e ON (ej453_e.id = ej453_ue.enrolid AND ej453_e.courseid = :ej453_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu453_u.id LEFT JOIN {groups_members} gm453_gm2 ON (gm453_gm2.userid = eu453_u.id AND gm453_gm2.groupid = :gm453_2718) WHERE 1 = 1 AND ej453_ue.status = :ej453_active AND ej453_e.status = :ej453_enabled AND ej453_ue.timestart < :ej453_now1 AND (ej453_ue.timeend = 0 OR ej453_ue.timeend > :ej453_now2) AND eu453_u.deleted = 0 AND eu453_u.id <> :eu453_guestid AND gm453_gm2.userid IS NOT NULL AND eu453_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu454_u.id FROM {user} eu454_u JOIN {user_enrolments} ej454_ue ON ej454_ue.userid = eu454_u.id JOIN {enrol} ej454_e ON (ej454_e.id = ej454_ue.enrolid AND ej454_e.courseid = :ej454_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu454_u.id LEFT JOIN {groups_members} gm454_gm2 ON (gm454_gm2.userid = eu454_u.id AND gm454_gm2.groupid = :gm454_2724) WHERE 1 = 1 AND ej454_ue.status = :ej454_active AND ej454_e.status = :ej454_enabled AND ej454_ue.timestart < :ej454_now1 AND (ej454_ue.timeend = 0 OR ej454_ue.timeend > :ej454_now2) AND eu454_u.deleted = 0 AND eu454_u.id <> :eu454_guestid AND gm454_gm2.userid IS NOT NULL AND eu454_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu455_u.id FROM {user} eu455_u JOIN {user_enrolments} ej455_ue ON ej455_ue.userid = eu455_u.id JOIN {enrol} ej455_e ON (ej455_e.id = ej455_ue.enrolid AND ej455_e.courseid = :ej455_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu455_u.id LEFT JOIN {groups_members} gm455_gm2 ON (gm455_gm2.userid = eu455_u.id AND gm455_gm2.groupid = :gm455_2730) WHERE 1 = 1 AND ej455_ue.status = :ej455_active AND ej455_e.status = :ej455_enabled AND ej455_ue.timestart < :ej455_now1 AND (ej455_ue.timeend = 0 OR ej455_ue.timeend > :ej455_now2) AND eu455_u.deleted = 0 AND eu455_u.id <> :eu455_guestid AND gm455_gm2.userid IS NOT NULL AND eu455_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu456_u.id FROM {user} eu456_u JOIN {user_enrolments} ej456_ue ON ej456_ue.userid = eu456_u.id JOIN {enrol} ej456_e ON (ej456_e.id = ej456_ue.enrolid AND ej456_e.courseid = :ej456_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu456_u.id LEFT JOIN {groups_members} gm456_gm2 ON (gm456_gm2.userid = eu456_u.id AND gm456_gm2.groupid = :gm456_2736) WHERE 1 = 1 AND ej456_ue.status = :ej456_active AND ej456_e.status = :ej456_enabled AND ej456_ue.timestart < :ej456_now1 AND (ej456_ue.timeend = 0 OR ej456_ue.timeend > :ej456_now2) AND eu456_u.deleted = 0 AND eu456_u.id <> :eu456_guestid AND gm456_gm2.userid IS NOT NULL AND eu456_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu457_u.id FROM {user} eu457_u JOIN {user_enrolments} ej457_ue ON ej457_ue.userid = eu457_u.id JOIN {enrol} ej457_e ON (ej457_e.id = ej457_ue.enrolid AND ej457_e.courseid = :ej457_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu457_u.id LEFT JOIN {groups_members} gm457_gm2 ON (gm457_gm2.userid = eu457_u.id AND gm457_gm2.groupid = :gm457_2742) WHERE 1 = 1 AND ej457_ue.status = :ej457_active AND ej457_e.status = :ej457_enabled AND ej457_ue.timestart < :ej457_now1 AND (ej457_ue.timeend = 0 OR ej457_ue.timeend > :ej457_now2) AND eu457_u.deleted = 0 AND eu457_u.id <> :eu457_guestid AND gm457_gm2.userid IS NOT NULL AND eu457_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu458_u.id FROM {user} eu458_u JOIN {user_enrolments} ej458_ue ON ej458_ue.userid = eu458_u.id JOIN {enrol} ej458_e ON (ej458_e.id = ej458_ue.enrolid AND ej458_e.courseid = :ej458_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu458_u.id LEFT JOIN {groups_members} gm458_gm2 ON (gm458_gm2.userid = eu458_u.id AND gm458_gm2.groupid = :gm458_2748) WHERE 1 = 1 AND ej458_ue.status = :ej458_active AND ej458_e.status = :ej458_enabled AND ej458_ue.timestart < :ej458_now1 AND (ej458_ue.timeend = 0 OR ej458_ue.timeend > :ej458_now2) AND eu458_u.deleted = 0 AND eu458_u.id <> :eu458_guestid AND gm458_gm2.userid IS NOT NULL AND eu458_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu459_u.id FROM {user} eu459_u JOIN {user_enrolments} ej459_ue ON ej459_ue.userid = eu459_u.id JOIN {enrol} ej459_e ON (ej459_e.id = ej459_ue.enrolid AND ej459_e.courseid = :ej459_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu459_u.id LEFT JOIN {groups_members} gm459_gm2 ON (gm459_gm2.userid = eu459_u.id AND gm459_gm2.groupid = :gm459_2754) WHERE 1 = 1 AND ej459_ue.status = :ej459_active AND ej459_e.status = :ej459_enabled AND ej459_ue.timestart < :ej459_now1 AND (ej459_ue.timeend = 0 OR ej459_ue.timeend > :ej459_now2) AND eu459_u.deleted = 0 AND eu459_u.id <> :eu459_guestid AND gm459_gm2.userid IS NOT NULL AND eu459_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu460_u.id FROM {user} eu460_u JOIN {user_enrolments} ej460_ue ON ej460_ue.userid = eu460_u.id JOIN {enrol} ej460_e ON (ej460_e.id = ej460_ue.enrolid AND ej460_e.courseid = :ej460_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu460_u.id LEFT JOIN {groups_members} gm460_gm2 ON (gm460_gm2.userid = eu460_u.id AND gm460_gm2.groupid = :gm460_2760) WHERE 1 = 1 AND ej460_ue.status = :ej460_active AND ej460_e.status = :ej460_enabled AND ej460_ue.timestart < :ej460_now1 AND (ej460_ue.timeend = 0 OR ej460_ue.timeend > :ej460_now2) AND eu460_u.deleted = 0 AND eu460_u.id <> :eu460_guestid AND gm460_gm2.userid IS NOT NULL AND eu460_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu461_u.id FROM {user} eu461_u JOIN {user_enrolments} ej461_ue ON ej461_ue.userid = eu461_u.id JOIN {enrol} ej461_e ON (ej461_e.id = ej461_ue.enrolid AND ej461_e.courseid = :ej461_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu461_u.id LEFT JOIN {groups_members} gm461_gm2 ON (gm461_gm2.userid = eu461_u.id AND gm461_gm2.groupid = :gm461_2766) WHERE 1 = 1 AND ej461_ue.status = :ej461_active AND ej461_e.status = :ej461_enabled AND ej461_ue.timestart < :ej461_now1 AND (ej461_ue.timeend = 0 OR ej461_ue.timeend > :ej461_now2) AND eu461_u.deleted = 0 AND eu461_u.id <> :eu461_guestid AND gm461_gm2.userid IS NOT NULL AND eu461_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu462_u.id FROM {user} eu462_u JOIN {user_enrolments} ej462_ue ON ej462_ue.userid = eu462_u.id JOIN {enrol} ej462_e ON (ej462_e.id = ej462_ue.enrolid AND ej462_e.courseid = :ej462_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu462_u.id LEFT JOIN {groups_members} gm462_gm2 ON (gm462_gm2.userid = eu462_u.id AND gm462_gm2.groupid = :gm462_2772) WHERE 1 = 1 AND ej462_ue.status = :ej462_active AND ej462_e.status = :ej462_enabled AND ej462_ue.timestart < :ej462_now1 AND (ej462_ue.timeend = 0 OR ej462_ue.timeend > :ej462_now2) AND eu462_u.deleted = 0 AND eu462_u.id <> :eu462_guestid AND gm462_gm2.userid IS NOT NULL AND eu462_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu463_u.id FROM {user} eu463_u JOIN {user_enrolments} ej463_ue ON ej463_ue.userid = eu463_u.id JOIN {enrol} ej463_e ON (ej463_e.id = ej463_ue.enrolid AND ej463_e.courseid = :ej463_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu463_u.id LEFT JOIN {groups_members} gm463_gm2 ON (gm463_gm2.userid = eu463_u.id AND gm463_gm2.groupid = :gm463_2778) WHERE 1 = 1 AND ej463_ue.status = :ej463_active AND ej463_e.status = :ej463_enabled AND ej463_ue.timestart < :ej463_now1 AND (ej463_ue.timeend = 0 OR ej463_ue.timeend > :ej463_now2) AND eu463_u.deleted = 0 AND eu463_u.id <> :eu463_guestid AND gm463_gm2.userid IS NOT NULL AND eu463_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu464_u.id FROM {user} eu464_u JOIN {user_enrolments} ej464_ue ON ej464_ue.userid = eu464_u.id JOIN {enrol} ej464_e ON (ej464_e.id = ej464_ue.enrolid AND ej464_e.courseid = :ej464_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu464_u.id LEFT JOIN {groups_members} gm464_gm2 ON (gm464_gm2.userid = eu464_u.id AND gm464_gm2.groupid = :gm464_2784) WHERE 1 = 1 AND ej464_ue.status = :ej464_active AND ej464_e.status = :ej464_enabled AND ej464_ue.timestart < :ej464_now1 AND (ej464_ue.timeend = 0 OR ej464_ue.timeend > :ej464_now2) AND eu464_u.deleted = 0 AND eu464_u.id <> :eu464_guestid AND gm464_gm2.userid IS NOT NULL AND eu464_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu465_u.id FROM {user} eu465_u JOIN {user_enrolments} ej465_ue ON ej465_ue.userid = eu465_u.id JOIN {enrol} ej465_e ON (ej465_e.id = ej465_ue.enrolid AND ej465_e.courseid = :ej465_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu465_u.id LEFT JOIN {groups_members} gm465_gm2 ON (gm465_gm2.userid = eu465_u.id AND gm465_gm2.groupid = :gm465_2790) WHERE 1 = 1 AND ej465_ue.status = :ej465_active AND ej465_e.status = :ej465_enabled AND ej465_ue.timestart < :ej465_now1 AND (ej465_ue.timeend = 0 OR ej465_ue.timeend > :ej465_now2) AND eu465_u.deleted = 0 AND eu465_u.id <> :eu465_guestid AND gm465_gm2.userid IS NOT NULL AND eu465_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu466_u.id FROM {user} eu466_u JOIN {user_enrolments} ej466_ue ON ej466_ue.userid = eu466_u.id JOIN {enrol} ej466_e ON (ej466_e.id = ej466_ue.enrolid AND ej466_e.courseid = :ej466_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu466_u.id LEFT JOIN {groups_members} gm466_gm2 ON (gm466_gm2.userid = eu466_u.id AND gm466_gm2.groupid = :gm466_2796) WHERE 1 = 1 AND ej466_ue.status = :ej466_active AND ej466_e.status = :ej466_enabled AND ej466_ue.timestart < :ej466_now1 AND (ej466_ue.timeend = 0 OR ej466_ue.timeend > :ej466_now2) AND eu466_u.deleted = 0 AND eu466_u.id <> :eu466_guestid AND gm466_gm2.userid IS NOT NULL AND eu466_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu467_u.id FROM {user} eu467_u JOIN {user_enrolments} ej467_ue ON ej467_ue.userid = eu467_u.id JOIN {enrol} ej467_e ON (ej467_e.id = ej467_ue.enrolid AND ej467_e.courseid = :ej467_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu467_u.id LEFT JOIN {groups_members} gm467_gm2 ON (gm467_gm2.userid = eu467_u.id AND gm467_gm2.groupid = :gm467_2802) WHERE 1 = 1 AND ej467_ue.status = :ej467_active AND ej467_e.status = :ej467_enabled AND ej467_ue.timestart < :ej467_now1 AND (ej467_ue.timeend = 0 OR ej467_ue.timeend > :ej467_now2) AND eu467_u.deleted = 0 AND eu467_u.id <> :eu467_guestid AND gm467_gm2.userid IS NOT NULL AND eu467_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu468_u.id FROM {user} eu468_u JOIN {user_enrolments} ej468_ue ON ej468_ue.userid = eu468_u.id JOIN {enrol} ej468_e ON (ej468_e.id = ej468_ue.enrolid AND ej468_e.courseid = :ej468_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu468_u.id LEFT JOIN {groups_members} gm468_gm2 ON (gm468_gm2.userid = eu468_u.id AND gm468_gm2.groupid = :gm468_2808) WHERE 1 = 1 AND ej468_ue.status = :ej468_active AND ej468_e.status = :ej468_enabled AND ej468_ue.timestart < :ej468_now1 AND (ej468_ue.timeend = 0 OR ej468_ue.timeend > :ej468_now2) AND eu468_u.deleted = 0 AND eu468_u.id <> :eu468_guestid AND gm468_gm2.userid IS NOT NULL AND eu468_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu469_u.id FROM {user} eu469_u JOIN {user_enrolments} ej469_ue ON ej469_ue.userid = eu469_u.id JOIN {enrol} ej469_e ON (ej469_e.id = ej469_ue.enrolid AND ej469_e.courseid = :ej469_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu469_u.id LEFT JOIN {groups_members} gm469_gm2 ON (gm469_gm2.userid = eu469_u.id AND gm469_gm2.groupid = :gm469_2814) WHERE 1 = 1 AND ej469_ue.status = :ej469_active AND ej469_e.status = :ej469_enabled AND ej469_ue.timestart < :ej469_now1 AND (ej469_ue.timeend = 0 OR ej469_ue.timeend > :ej469_now2) AND eu469_u.deleted = 0 AND eu469_u.id <> :eu469_guestid AND gm469_gm2.userid IS NOT NULL AND eu469_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu470_u.id FROM {user} eu470_u JOIN {user_enrolments} ej470_ue ON ej470_ue.userid = eu470_u.id JOIN {enrol} ej470_e ON (ej470_e.id = ej470_ue.enrolid AND ej470_e.courseid = :ej470_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu470_u.id LEFT JOIN {groups_members} gm470_gm2 ON (gm470_gm2.userid = eu470_u.id AND gm470_gm2.groupid = :gm470_2820) WHERE 1 = 1 AND ej470_ue.status = :ej470_active AND ej470_e.status = :ej470_enabled AND ej470_ue.timestart < :ej470_now1 AND (ej470_ue.timeend = 0 OR ej470_ue.timeend > :ej470_now2) AND eu470_u.deleted = 0 AND eu470_u.id <> :eu470_guestid AND gm470_gm2.userid IS NOT NULL AND eu470_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu471_u.id FROM {user} eu471_u JOIN {user_enrolments} ej471_ue ON ej471_ue.userid = eu471_u.id JOIN {enrol} ej471_e ON (ej471_e.id = ej471_ue.enrolid AND ej471_e.courseid = :ej471_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu471_u.id LEFT JOIN {groups_members} gm471_gm2 ON (gm471_gm2.userid = eu471_u.id AND gm471_gm2.groupid = :gm471_2826) WHERE 1 = 1 AND ej471_ue.status = :ej471_active AND ej471_e.status = :ej471_enabled AND ej471_ue.timestart < :ej471_now1 AND (ej471_ue.timeend = 0 OR ej471_ue.timeend > :ej471_now2) AND eu471_u.deleted = 0 AND eu471_u.id <> :eu471_guestid AND gm471_gm2.userid IS NOT NULL AND eu471_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu472_u.id FROM {user} eu472_u JOIN {user_enrolments} ej472_ue ON ej472_ue.userid = eu472_u.id JOIN {enrol} ej472_e ON (ej472_e.id = ej472_ue.enrolid AND ej472_e.courseid = :ej472_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu472_u.id LEFT JOIN {groups_members} gm472_gm2 ON (gm472_gm2.userid = eu472_u.id AND gm472_gm2.groupid = :gm472_2832) WHERE 1 = 1 AND ej472_ue.status = :ej472_active AND ej472_e.status = :ej472_enabled AND ej472_ue.timestart < :ej472_now1 AND (ej472_ue.timeend = 0 OR ej472_ue.timeend > :ej472_now2) AND eu472_u.deleted = 0 AND eu472_u.id <> :eu472_guestid AND gm472_gm2.userid IS NOT NULL AND eu472_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu473_u.id FROM {user} eu473_u JOIN {user_enrolments} ej473_ue ON ej473_ue.userid = eu473_u.id JOIN {enrol} ej473_e ON (ej473_e.id = ej473_ue.enrolid AND ej473_e.courseid = :ej473_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu473_u.id LEFT JOIN {groups_members} gm473_gm2 ON (gm473_gm2.userid = eu473_u.id AND gm473_gm2.groupid = :gm473_2838) WHERE 1 = 1 AND ej473_ue.status = :ej473_active AND ej473_e.status = :ej473_enabled AND ej473_ue.timestart < :ej473_now1 AND (ej473_ue.timeend = 0 OR ej473_ue.timeend > :ej473_now2) AND eu473_u.deleted = 0 AND eu473_u.id <> :eu473_guestid AND gm473_gm2.userid IS NOT NULL AND eu473_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu474_u.id FROM {user} eu474_u JOIN {user_enrolments} ej474_ue ON ej474_ue.userid = eu474_u.id JOIN {enrol} ej474_e ON (ej474_e.id = ej474_ue.enrolid AND ej474_e.courseid = :ej474_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu474_u.id LEFT JOIN {groups_members} gm474_gm2 ON (gm474_gm2.userid = eu474_u.id AND gm474_gm2.groupid = :gm474_2844) WHERE 1 = 1 AND ej474_ue.status = :ej474_active AND ej474_e.status = :ej474_enabled AND ej474_ue.timestart < :ej474_now1 AND (ej474_ue.timeend = 0 OR ej474_ue.timeend > :ej474_now2) AND eu474_u.deleted = 0 AND eu474_u.id <> :eu474_guestid AND gm474_gm2.userid IS NOT NULL AND eu474_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu475_u.id FROM {user} eu475_u JOIN {user_enrolments} ej475_ue ON ej475_ue.userid = eu475_u.id JOIN {enrol} ej475_e ON (ej475_e.id = ej475_ue.enrolid AND ej475_e.courseid = :ej475_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu475_u.id LEFT JOIN {groups_members} gm475_gm2 ON (gm475_gm2.userid = eu475_u.id AND gm475_gm2.groupid = :gm475_2850) WHERE 1 = 1 AND ej475_ue.status = :ej475_active AND ej475_e.status = :ej475_enabled AND ej475_ue.timestart < :ej475_now1 AND (ej475_ue.timeend = 0 OR ej475_ue.timeend > :ej475_now2) AND eu475_u.deleted = 0 AND eu475_u.id <> :eu475_guestid AND gm475_gm2.userid IS NOT NULL AND eu475_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu476_u.id FROM {user} eu476_u JOIN {user_enrolments} ej476_ue ON ej476_ue.userid = eu476_u.id JOIN {enrol} ej476_e ON (ej476_e.id = ej476_ue.enrolid AND ej476_e.courseid = :ej476_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu476_u.id LEFT JOIN {groups_members} gm476_gm2 ON (gm476_gm2.userid = eu476_u.id AND gm476_gm2.groupid = :gm476_2856) WHERE 1 = 1 AND ej476_ue.status = :ej476_active AND ej476_e.status = :ej476_enabled AND ej476_ue.timestart < :ej476_now1 AND (ej476_ue.timeend = 0 OR ej476_ue.timeend > :ej476_now2) AND eu476_u.deleted = 0 AND eu476_u.id <> :eu476_guestid AND gm476_gm2.userid IS NOT NULL AND eu476_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu477_u.id FROM {user} eu477_u JOIN {user_enrolments} ej477_ue ON ej477_ue.userid = eu477_u.id JOIN {enrol} ej477_e ON (ej477_e.id = ej477_ue.enrolid AND ej477_e.courseid = :ej477_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu477_u.id LEFT JOIN {groups_members} gm477_gm2 ON (gm477_gm2.userid = eu477_u.id AND gm477_gm2.groupid = :gm477_2862) WHERE 1 = 1 AND ej477_ue.status = :ej477_active AND ej477_e.status = :ej477_enabled AND ej477_ue.timestart < :ej477_now1 AND (ej477_ue.timeend = 0 OR ej477_ue.timeend > :ej477_now2) AND eu477_u.deleted = 0 AND eu477_u.id <> :eu477_guestid AND gm477_gm2.userid IS NOT NULL AND eu477_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu478_u.id FROM {user} eu478_u JOIN {user_enrolments} ej478_ue ON ej478_ue.userid = eu478_u.id JOIN {enrol} ej478_e ON (ej478_e.id = ej478_ue.enrolid AND ej478_e.courseid = :ej478_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu478_u.id LEFT JOIN {groups_members} gm478_gm2 ON (gm478_gm2.userid = eu478_u.id AND gm478_gm2.groupid = :gm478_2868) WHERE 1 = 1 AND ej478_ue.status = :ej478_active AND ej478_e.status = :ej478_enabled AND ej478_ue.timestart < :ej478_now1 AND (ej478_ue.timeend = 0 OR ej478_ue.timeend > :ej478_now2) AND eu478_u.deleted = 0 AND eu478_u.id <> :eu478_guestid AND gm478_gm2.userid IS NOT NULL AND eu478_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu479_u.id FROM {user} eu479_u JOIN {user_enrolments} ej479_ue ON ej479_ue.userid = eu479_u.id JOIN {enrol} ej479_e ON (ej479_e.id = ej479_ue.enrolid AND ej479_e.courseid = :ej479_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu479_u.id LEFT JOIN {groups_members} gm479_gm2 ON (gm479_gm2.userid = eu479_u.id AND gm479_gm2.groupid = :gm479_2874) WHERE 1 = 1 AND ej479_ue.status = :ej479_active AND ej479_e.status = :ej479_enabled AND ej479_ue.timestart < :ej479_now1 AND (ej479_ue.timeend = 0 OR ej479_ue.timeend > :ej479_now2) AND eu479_u.deleted = 0 AND eu479_u.id <> :eu479_guestid AND gm479_gm2.userid IS NOT NULL AND eu479_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu480_u.id FROM {user} eu480_u JOIN {user_enrolments} ej480_ue ON ej480_ue.userid = eu480_u.id JOIN {enrol} ej480_e ON (ej480_e.id = ej480_ue.enrolid AND ej480_e.courseid = :ej480_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu480_u.id LEFT JOIN {groups_members} gm480_gm2 ON (gm480_gm2.userid = eu480_u.id AND gm480_gm2.groupid = :gm480_2880) WHERE 1 = 1 AND ej480_ue.status = :ej480_active AND ej480_e.status = :ej480_enabled AND ej480_ue.timestart < :ej480_now1 AND (ej480_ue.timeend = 0 OR ej480_ue.timeend > :ej480_now2) AND eu480_u.deleted = 0 AND eu480_u.id <> :eu480_guestid AND gm480_gm2.userid IS NOT NULL AND eu480_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu481_u.id FROM {user} eu481_u JOIN {user_enrolments} ej481_ue ON ej481_ue.userid = eu481_u.id JOIN {enrol} ej481_e ON (ej481_e.id = ej481_ue.enrolid AND ej481_e.courseid = :ej481_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu481_u.id LEFT JOIN {groups_members} gm481_gm2 ON (gm481_gm2.userid = eu481_u.id AND gm481_gm2.groupid = :gm481_2886) WHERE 1 = 1 AND ej481_ue.status = :ej481_active AND ej481_e.status = :ej481_enabled AND ej481_ue.timestart < :ej481_now1 AND (ej481_ue.timeend = 0 OR ej481_ue.timeend > :ej481_now2) AND eu481_u.deleted = 0 AND eu481_u.id <> :eu481_guestid AND gm481_gm2.userid IS NOT NULL AND eu481_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu482_u.id FROM {user} eu482_u JOIN {user_enrolments} ej482_ue ON ej482_ue.userid = eu482_u.id JOIN {enrol} ej482_e ON (ej482_e.id = ej482_ue.enrolid AND ej482_e.courseid = :ej482_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu482_u.id LEFT JOIN {groups_members} gm482_gm2 ON (gm482_gm2.userid = eu482_u.id AND gm482_gm2.groupid = :gm482_2892) WHERE 1 = 1 AND ej482_ue.status = :ej482_active AND ej482_e.status = :ej482_enabled AND ej482_ue.timestart < :ej482_now1 AND (ej482_ue.timeend = 0 OR ej482_ue.timeend > :ej482_now2) AND eu482_u.deleted = 0 AND eu482_u.id <> :eu482_guestid AND gm482_gm2.userid IS NOT NULL AND eu482_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu483_u.id FROM {user} eu483_u JOIN {user_enrolments} ej483_ue ON ej483_ue.userid = eu483_u.id JOIN {enrol} ej483_e ON (ej483_e.id = ej483_ue.enrolid AND ej483_e.courseid = :ej483_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu483_u.id LEFT JOIN {groups_members} gm483_gm2 ON (gm483_gm2.userid = eu483_u.id AND gm483_gm2.groupid = :gm483_2898) WHERE 1 = 1 AND ej483_ue.status = :ej483_active AND ej483_e.status = :ej483_enabled AND ej483_ue.timestart < :ej483_now1 AND (ej483_ue.timeend = 0 OR ej483_ue.timeend > :ej483_now2) AND eu483_u.deleted = 0 AND eu483_u.id <> :eu483_guestid AND gm483_gm2.userid IS NOT NULL AND eu483_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu484_u.id FROM {user} eu484_u JOIN {user_enrolments} ej484_ue ON ej484_ue.userid = eu484_u.id JOIN {enrol} ej484_e ON (ej484_e.id = ej484_ue.enrolid AND ej484_e.courseid = :ej484_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu484_u.id LEFT JOIN {groups_members} gm484_gm2 ON (gm484_gm2.userid = eu484_u.id AND gm484_gm2.groupid = :gm484_2904) WHERE 1 = 1 AND ej484_ue.status = :ej484_active AND ej484_e.status = :ej484_enabled AND ej484_ue.timestart < :ej484_now1 AND (ej484_ue.timeend = 0 OR ej484_ue.timeend > :ej484_now2) AND eu484_u.deleted = 0 AND eu484_u.id <> :eu484_guestid AND gm484_gm2.userid IS NOT NULL AND eu484_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu485_u.id FROM {user} eu485_u JOIN {user_enrolments} ej485_ue ON ej485_ue.userid = eu485_u.id JOIN {enrol} ej485_e ON (ej485_e.id = ej485_ue.enrolid AND ej485_e.courseid = :ej485_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu485_u.id LEFT JOIN {groups_members} gm485_gm2 ON (gm485_gm2.userid = eu485_u.id AND gm485_gm2.groupid = :gm485_2910) WHERE 1 = 1 AND ej485_ue.status = :ej485_active AND ej485_e.status = :ej485_enabled AND ej485_ue.timestart < :ej485_now1 AND (ej485_ue.timeend = 0 OR ej485_ue.timeend > :ej485_now2) AND eu485_u.deleted = 0 AND eu485_u.id <> :eu485_guestid AND gm485_gm2.userid IS NOT NULL AND eu485_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu486_u.id FROM {user} eu486_u JOIN {user_enrolments} ej486_ue ON ej486_ue.userid = eu486_u.id JOIN {enrol} ej486_e ON (ej486_e.id = ej486_ue.enrolid AND ej486_e.courseid = :ej486_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu486_u.id LEFT JOIN {groups_members} gm486_gm2 ON (gm486_gm2.userid = eu486_u.id AND gm486_gm2.groupid = :gm486_2916) WHERE 1 = 1 AND ej486_ue.status = :ej486_active AND ej486_e.status = :ej486_enabled AND ej486_ue.timestart < :ej486_now1 AND (ej486_ue.timeend = 0 OR ej486_ue.timeend > :ej486_now2) AND eu486_u.deleted = 0 AND eu486_u.id <> :eu486_guestid AND gm486_gm2.userid IS NOT NULL AND eu486_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu487_u.id FROM {user} eu487_u JOIN {user_enrolments} ej487_ue ON ej487_ue.userid = eu487_u.id JOIN {enrol} ej487_e ON (ej487_e.id = ej487_ue.enrolid AND ej487_e.courseid = :ej487_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu487_u.id LEFT JOIN {groups_members} gm487_gm2 ON (gm487_gm2.userid = eu487_u.id AND gm487_gm2.groupid = :gm487_2922) WHERE 1 = 1 AND ej487_ue.status = :ej487_active AND ej487_e.status = :ej487_enabled AND ej487_ue.timestart < :ej487_now1 AND (ej487_ue.timeend = 0 OR ej487_ue.timeend > :ej487_now2) AND eu487_u.deleted = 0 AND eu487_u.id <> :eu487_guestid AND gm487_gm2.userid IS NOT NULL AND eu487_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu488_u.id FROM {user} eu488_u JOIN {user_enrolments} ej488_ue ON ej488_ue.userid = eu488_u.id JOIN {enrol} ej488_e ON (ej488_e.id = ej488_ue.enrolid AND ej488_e.courseid = :ej488_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu488_u.id LEFT JOIN {groups_members} gm488_gm2 ON (gm488_gm2.userid = eu488_u.id AND gm488_gm2.groupid = :gm488_2928) WHERE 1 = 1 AND ej488_ue.status = :ej488_active AND ej488_e.status = :ej488_enabled AND ej488_ue.timestart < :ej488_now1 AND (ej488_ue.timeend = 0 OR ej488_ue.timeend > :ej488_now2) AND eu488_u.deleted = 0 AND eu488_u.id <> :eu488_guestid AND gm488_gm2.userid IS NOT NULL AND eu488_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu489_u.id FROM {user} eu489_u JOIN {user_enrolments} ej489_ue ON ej489_ue.userid = eu489_u.id JOIN {enrol} ej489_e ON (ej489_e.id = ej489_ue.enrolid AND ej489_e.courseid = :ej489_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu489_u.id LEFT JOIN {groups_members} gm489_gm2 ON (gm489_gm2.userid = eu489_u.id AND gm489_gm2.groupid = :gm489_2934) WHERE 1 = 1 AND ej489_ue.status = :ej489_active AND ej489_e.status = :ej489_enabled AND ej489_ue.timestart < :ej489_now1 AND (ej489_ue.timeend = 0 OR ej489_ue.timeend > :ej489_now2) AND eu489_u.deleted = 0 AND eu489_u.id <> :eu489_guestid AND gm489_gm2.userid IS NOT NULL AND eu489_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu490_u.id FROM {user} eu490_u JOIN {user_enrolments} ej490_ue ON ej490_ue.userid = eu490_u.id JOIN {enrol} ej490_e ON (ej490_e.id = ej490_ue.enrolid AND ej490_e.courseid = :ej490_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu490_u.id LEFT JOIN {groups_members} gm490_gm2 ON (gm490_gm2.userid = eu490_u.id AND gm490_gm2.groupid = :gm490_2940) WHERE 1 = 1 AND ej490_ue.status = :ej490_active AND ej490_e.status = :ej490_enabled AND ej490_ue.timestart < :ej490_now1 AND (ej490_ue.timeend = 0 OR ej490_ue.timeend > :ej490_now2) AND eu490_u.deleted = 0 AND eu490_u.id <> :eu490_guestid AND gm490_gm2.userid IS NOT NULL AND eu490_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu491_u.id FROM {user} eu491_u JOIN {user_enrolments} ej491_ue ON ej491_ue.userid = eu491_u.id JOIN {enrol} ej491_e ON (ej491_e.id = ej491_ue.enrolid AND ej491_e.courseid = :ej491_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu491_u.id LEFT JOIN {groups_members} gm491_gm2 ON (gm491_gm2.userid = eu491_u.id AND gm491_gm2.groupid = :gm491_2946) WHERE 1 = 1 AND ej491_ue.status = :ej491_active AND ej491_e.status = :ej491_enabled AND ej491_ue.timestart < :ej491_now1 AND (ej491_ue.timeend = 0 OR ej491_ue.timeend > :ej491_now2) AND eu491_u.deleted = 0 AND eu491_u.id <> :eu491_guestid AND gm491_gm2.userid IS NOT NULL AND eu491_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu492_u.id FROM {user} eu492_u JOIN {user_enrolments} ej492_ue ON ej492_ue.userid = eu492_u.id JOIN {enrol} ej492_e ON (ej492_e.id = ej492_ue.enrolid AND ej492_e.courseid = :ej492_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu492_u.id LEFT JOIN {groups_members} gm492_gm2 ON (gm492_gm2.userid = eu492_u.id AND gm492_gm2.groupid = :gm492_2952) WHERE 1 = 1 AND ej492_ue.status = :ej492_active AND ej492_e.status = :ej492_enabled AND ej492_ue.timestart < :ej492_now1 AND (ej492_ue.timeend = 0 OR ej492_ue.timeend > :ej492_now2) AND eu492_u.deleted = 0 AND eu492_u.id <> :eu492_guestid AND gm492_gm2.userid IS NOT NULL AND eu492_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu493_u.id FROM {user} eu493_u JOIN {user_enrolments} ej493_ue ON ej493_ue.userid = eu493_u.id JOIN {enrol} ej493_e ON (ej493_e.id = ej493_ue.enrolid AND ej493_e.courseid = :ej493_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu493_u.id LEFT JOIN {groups_members} gm493_gm2 ON (gm493_gm2.userid = eu493_u.id AND gm493_gm2.groupid = :gm493_2958) WHERE 1 = 1 AND ej493_ue.status = :ej493_active AND ej493_e.status = :ej493_enabled AND ej493_ue.timestart < :ej493_now1 AND (ej493_ue.timeend = 0 OR ej493_ue.timeend > :ej493_now2) AND eu493_u.deleted = 0 AND eu493_u.id <> :eu493_guestid AND gm493_gm2.userid IS NOT NULL AND eu493_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu494_u.id FROM {user} eu494_u JOIN {user_enrolments} ej494_ue ON ej494_ue.userid = eu494_u.id JOIN {enrol} ej494_e ON (ej494_e.id = ej494_ue.enrolid AND ej494_e.courseid = :ej494_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu494_u.id LEFT JOIN {groups_members} gm494_gm2 ON (gm494_gm2.userid = eu494_u.id AND gm494_gm2.groupid = :gm494_2964) WHERE 1 = 1 AND ej494_ue.status = :ej494_active AND ej494_e.status = :ej494_enabled AND ej494_ue.timestart < :ej494_now1 AND (ej494_ue.timeend = 0 OR ej494_ue.timeend > :ej494_now2) AND eu494_u.deleted = 0 AND eu494_u.id <> :eu494_guestid AND gm494_gm2.userid IS NOT NULL AND eu494_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu495_u.id FROM {user} eu495_u JOIN {user_enrolments} ej495_ue ON ej495_ue.userid = eu495_u.id JOIN {enrol} ej495_e ON (ej495_e.id = ej495_ue.enrolid AND ej495_e.courseid = :ej495_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu495_u.id LEFT JOIN {groups_members} gm495_gm2 ON (gm495_gm2.userid = eu495_u.id AND gm495_gm2.groupid = :gm495_2970) WHERE 1 = 1 AND ej495_ue.status = :ej495_active AND ej495_e.status = :ej495_enabled AND ej495_ue.timestart < :ej495_now1 AND (ej495_ue.timeend = 0 OR ej495_ue.timeend > :ej495_now2) AND eu495_u.deleted = 0 AND eu495_u.id <> :eu495_guestid AND gm495_gm2.userid IS NOT NULL AND eu495_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu496_u.id FROM {user} eu496_u JOIN {user_enrolments} ej496_ue ON ej496_ue.userid = eu496_u.id JOIN {enrol} ej496_e ON (ej496_e.id = ej496_ue.enrolid AND ej496_e.courseid = :ej496_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu496_u.id LEFT JOIN {groups_members} gm496_gm2 ON (gm496_gm2.userid = eu496_u.id AND gm496_gm2.groupid = :gm496_2976) WHERE 1 = 1 AND ej496_ue.status = :ej496_active AND ej496_e.status = :ej496_enabled AND ej496_ue.timestart < :ej496_now1 AND (ej496_ue.timeend = 0 OR ej496_ue.timeend > :ej496_now2) AND eu496_u.deleted = 0 AND eu496_u.id <> :eu496_guestid AND gm496_gm2.userid IS NOT NULL AND eu496_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu497_u.id FROM {user} eu497_u JOIN {user_enrolments} ej497_ue ON ej497_ue.userid = eu497_u.id JOIN {enrol} ej497_e ON (ej497_e.id = ej497_ue.enrolid AND ej497_e.courseid = :ej497_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu497_u.id LEFT JOIN {groups_members} gm497_gm2 ON (gm497_gm2.userid = eu497_u.id AND gm497_gm2.groupid = :gm497_2982) WHERE 1 = 1 AND ej497_ue.status = :ej497_active AND ej497_e.status = :ej497_enabled AND ej497_ue.timestart < :ej497_now1 AND (ej497_ue.timeend = 0 OR ej497_ue.timeend > :ej497_now2) AND eu497_u.deleted = 0 AND eu497_u.id <> :eu497_guestid AND gm497_gm2.userid IS NOT NULL AND eu497_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu498_u.id FROM {user} eu498_u JOIN {user_enrolments} ej498_ue ON ej498_ue.userid = eu498_u.id JOIN {enrol} ej498_e ON (ej498_e.id = ej498_ue.enrolid AND ej498_e.courseid = :ej498_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu498_u.id LEFT JOIN {groups_members} gm498_gm2 ON (gm498_gm2.userid = eu498_u.id AND gm498_gm2.groupid = :gm498_2988) WHERE 1 = 1 AND ej498_ue.status = :ej498_active AND ej498_e.status = :ej498_enabled AND ej498_ue.timestart < :ej498_now1 AND (ej498_ue.timeend = 0 OR ej498_ue.timeend > :ej498_now2) AND eu498_u.deleted = 0 AND eu498_u.id <> :eu498_guestid AND gm498_gm2.userid IS NOT NULL AND eu498_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu499_u.id FROM {user} eu499_u JOIN {user_enrolments} ej499_ue ON ej499_ue.userid = eu499_u.id JOIN {enrol} ej499_e ON (ej499_e.id = ej499_ue.enrolid AND ej499_e.courseid = :ej499_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu499_u.id LEFT JOIN {groups_members} gm499_gm2 ON (gm499_gm2.userid = eu499_u.id AND gm499_gm2.groupid = :gm499_2994) WHERE 1 = 1 AND ej499_ue.status = :ej499_active AND ej499_e.status = :ej499_enabled AND ej499_ue.timestart < :ej499_now1 AND (ej499_ue.timeend = 0 OR ej499_ue.timeend > :ej499_now2) AND eu499_u.deleted = 0 AND eu499_u.id <> :eu499_guestid AND gm499_gm2.userid IS NOT NULL AND eu499_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu500_u.id FROM {user} eu500_u JOIN {user_enrolments} ej500_ue ON ej500_ue.userid = eu500_u.id JOIN {enrol} ej500_e ON (ej500_e.id = ej500_ue.enrolid AND ej500_e.courseid = :ej500_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu500_u.id LEFT JOIN {groups_members} gm500_gm2 ON (gm500_gm2.userid = eu500_u.id AND gm500_gm2.groupid = :gm500_3000) WHERE 1 = 1 AND ej500_ue.status = :ej500_active AND ej500_e.status = :ej500_enabled AND ej500_ue.timestart < :ej500_now1 AND (ej500_ue.timeend = 0 OR ej500_ue.timeend > :ej500_now2) AND eu500_u.deleted = 0 AND eu500_u.id <> :eu500_guestid AND gm500_gm2.userid IS NOT NULL AND eu500_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu501_u.id FROM {user} eu501_u JOIN {user_enrolments} ej501_ue ON ej501_ue.userid = eu501_u.id JOIN {enrol} ej501_e ON (ej501_e.id = ej501_ue.enrolid AND ej501_e.courseid = :ej501_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu501_u.id LEFT JOIN {groups_members} gm501_gm2 ON (gm501_gm2.userid = eu501_u.id AND gm501_gm2.groupid = :gm501_3006) WHERE 1 = 1 AND ej501_ue.status = :ej501_active AND ej501_e.status = :ej501_enabled AND ej501_ue.timestart < :ej501_now1 AND (ej501_ue.timeend = 0 OR ej501_ue.timeend > :ej501_now2) AND eu501_u.deleted = 0 AND eu501_u.id <> :eu501_guestid AND gm501_gm2.userid IS NOT NULL AND eu501_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu502_u.id FROM {user} eu502_u JOIN {user_enrolments} ej502_ue ON ej502_ue.userid = eu502_u.id JOIN {enrol} ej502_e ON (ej502_e.id = ej502_ue.enrolid AND ej502_e.courseid = :ej502_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu502_u.id LEFT JOIN {groups_members} gm502_gm2 ON (gm502_gm2.userid = eu502_u.id AND gm502_gm2.groupid = :gm502_3012) WHERE 1 = 1 AND ej502_ue.status = :ej502_active AND ej502_e.status = :ej502_enabled AND ej502_ue.timestart < :ej502_now1 AND (ej502_ue.timeend = 0 OR ej502_ue.timeend > :ej502_now2) AND eu502_u.deleted = 0 AND eu502_u.id <> :eu502_guestid AND gm502_gm2.userid IS NOT NULL AND eu502_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu503_u.id FROM {user} eu503_u JOIN {user_enrolments} ej503_ue ON ej503_ue.userid = eu503_u.id JOIN {enrol} ej503_e ON (ej503_e.id = ej503_ue.enrolid AND ej503_e.courseid = :ej503_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu503_u.id LEFT JOIN {groups_members} gm503_gm2 ON (gm503_gm2.userid = eu503_u.id AND gm503_gm2.groupid = :gm503_3018) WHERE 1 = 1 AND ej503_ue.status = :ej503_active AND ej503_e.status = :ej503_enabled AND ej503_ue.timestart < :ej503_now1 AND (ej503_ue.timeend = 0 OR ej503_ue.timeend > :ej503_now2) AND eu503_u.deleted = 0 AND eu503_u.id <> :eu503_guestid AND gm503_gm2.userid IS NOT NULL AND eu503_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu504_u.id FROM {user} eu504_u JOIN {user_enrolments} ej504_ue ON ej504_ue.userid = eu504_u.id JOIN {enrol} ej504_e ON (ej504_e.id = ej504_ue.enrolid AND ej504_e.courseid = :ej504_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu504_u.id LEFT JOIN {groups_members} gm504_gm2 ON (gm504_gm2.userid = eu504_u.id AND gm504_gm2.groupid = :gm504_3024) WHERE 1 = 1 AND ej504_ue.status = :ej504_active AND ej504_e.status = :ej504_enabled AND ej504_ue.timestart < :ej504_now1 AND (ej504_ue.timeend = 0 OR ej504_ue.timeend > :ej504_now2) AND eu504_u.deleted = 0 AND eu504_u.id <> :eu504_guestid AND gm504_gm2.userid IS NOT NULL AND eu504_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu505_u.id FROM {user} eu505_u JOIN {user_enrolments} ej505_ue ON ej505_ue.userid = eu505_u.id JOIN {enrol} ej505_e ON (ej505_e.id = ej505_ue.enrolid AND ej505_e.courseid = :ej505_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu505_u.id LEFT JOIN {groups_members} gm505_gm2 ON (gm505_gm2.userid = eu505_u.id AND gm505_gm2.groupid = :gm505_3030) WHERE 1 = 1 AND ej505_ue.status = :ej505_active AND ej505_e.status = :ej505_enabled AND ej505_ue.timestart < :ej505_now1 AND (ej505_ue.timeend = 0 OR ej505_ue.timeend > :ej505_now2) AND eu505_u.deleted = 0 AND eu505_u.id <> :eu505_guestid AND gm505_gm2.userid IS NOT NULL AND eu505_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu506_u.id FROM {user} eu506_u JOIN {user_enrolments} ej506_ue ON ej506_ue.userid = eu506_u.id JOIN {enrol} ej506_e ON (ej506_e.id = ej506_ue.enrolid AND ej506_e.courseid = :ej506_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu506_u.id LEFT JOIN {groups_members} gm506_gm2 ON (gm506_gm2.userid = eu506_u.id AND gm506_gm2.groupid = :gm506_3036) WHERE 1 = 1 AND ej506_ue.status = :ej506_active AND ej506_e.status = :ej506_enabled AND ej506_ue.timestart < :ej506_now1 AND (ej506_ue.timeend = 0 OR ej506_ue.timeend > :ej506_now2) AND eu506_u.deleted = 0 AND eu506_u.id <> :eu506_guestid AND gm506_gm2.userid IS NOT NULL AND eu506_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu507_u.id FROM {user} eu507_u JOIN {user_enrolments} ej507_ue ON ej507_ue.userid = eu507_u.id JOIN {enrol} ej507_e ON (ej507_e.id = ej507_ue.enrolid AND ej507_e.courseid = :ej507_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu507_u.id LEFT JOIN {groups_members} gm507_gm2 ON (gm507_gm2.userid = eu507_u.id AND gm507_gm2.groupid = :gm507_3042) WHERE 1 = 1 AND ej507_ue.status = :ej507_active AND ej507_e.status = :ej507_enabled AND ej507_ue.timestart < :ej507_now1 AND (ej507_ue.timeend = 0 OR ej507_ue.timeend > :ej507_now2) AND eu507_u.deleted = 0 AND eu507_u.id <> :eu507_guestid AND gm507_gm2.userid IS NOT NULL AND eu507_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu508_u.id FROM {user} eu508_u JOIN {user_enrolments} ej508_ue ON ej508_ue.userid = eu508_u.id JOIN {enrol} ej508_e ON (ej508_e.id = ej508_ue.enrolid AND ej508_e.courseid = :ej508_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu508_u.id LEFT JOIN {groups_members} gm508_gm2 ON (gm508_gm2.userid = eu508_u.id AND gm508_gm2.groupid = :gm508_3048) WHERE 1 = 1 AND ej508_ue.status = :ej508_active AND ej508_e.status = :ej508_enabled AND ej508_ue.timestart < :ej508_now1 AND (ej508_ue.timeend = 0 OR ej508_ue.timeend > :ej508_now2) AND eu508_u.deleted = 0 AND eu508_u.id <> :eu508_guestid AND gm508_gm2.userid IS NOT NULL AND eu508_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu509_u.id FROM {user} eu509_u JOIN {user_enrolments} ej509_ue ON ej509_ue.userid = eu509_u.id JOIN {enrol} ej509_e ON (ej509_e.id = ej509_ue.enrolid AND ej509_e.courseid = :ej509_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu509_u.id LEFT JOIN {groups_members} gm509_gm2 ON (gm509_gm2.userid = eu509_u.id AND gm509_gm2.groupid = :gm509_3054) WHERE 1 = 1 AND ej509_ue.status = :ej509_active AND ej509_e.status = :ej509_enabled AND ej509_ue.timestart < :ej509_now1 AND (ej509_ue.timeend = 0 OR ej509_ue.timeend > :ej509_now2) AND eu509_u.deleted = 0 AND eu509_u.id <> :eu509_guestid AND gm509_gm2.userid IS NOT NULL AND eu509_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu510_u.id FROM {user} eu510_u JOIN {user_enrolments} ej510_ue ON ej510_ue.userid = eu510_u.id JOIN {enrol} ej510_e ON (ej510_e.id = ej510_ue.enrolid AND ej510_e.courseid = :ej510_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu510_u.id LEFT JOIN {groups_members} gm510_gm2 ON (gm510_gm2.userid = eu510_u.id AND gm510_gm2.groupid = :gm510_3060) WHERE 1 = 1 AND ej510_ue.status = :ej510_active AND ej510_e.status = :ej510_enabled AND ej510_ue.timestart < :ej510_now1 AND (ej510_ue.timeend = 0 OR ej510_ue.timeend > :ej510_now2) AND eu510_u.deleted = 0 AND eu510_u.id <> :eu510_guestid AND gm510_gm2.userid IS NOT NULL AND eu510_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu511_u.id FROM {user} eu511_u JOIN {user_enrolments} ej511_ue ON ej511_ue.userid = eu511_u.id JOIN {enrol} ej511_e ON (ej511_e.id = ej511_ue.enrolid AND ej511_e.courseid = :ej511_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu511_u.id LEFT JOIN {groups_members} gm511_gm2 ON (gm511_gm2.userid = eu511_u.id AND gm511_gm2.groupid = :gm511_3066) WHERE 1 = 1 AND ej511_ue.status = :ej511_active AND ej511_e.status = :ej511_enabled AND ej511_ue.timestart < :ej511_now1 AND (ej511_ue.timeend = 0 OR ej511_ue.timeend > :ej511_now2) AND eu511_u.deleted = 0 AND eu511_u.id <> :eu511_guestid AND gm511_gm2.userid IS NOT NULL AND eu511_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu512_u.id FROM {user} eu512_u JOIN {user_enrolments} ej512_ue ON ej512_ue.userid = eu512_u.id JOIN {enrol} ej512_e ON (ej512_e.id = ej512_ue.enrolid AND ej512_e.courseid = :ej512_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu512_u.id LEFT JOIN {groups_members} gm512_gm2 ON (gm512_gm2.userid = eu512_u.id AND gm512_gm2.groupid = :gm512_3072) WHERE 1 = 1 AND ej512_ue.status = :ej512_active AND ej512_e.status = :ej512_enabled AND ej512_ue.timestart < :ej512_now1 AND (ej512_ue.timeend = 0 OR ej512_ue.timeend > :ej512_now2) AND eu512_u.deleted = 0 AND eu512_u.id <> :eu512_guestid AND gm512_gm2.userid IS NOT NULL AND eu512_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu513_u.id FROM {user} eu513_u JOIN {user_enrolments} ej513_ue ON ej513_ue.userid = eu513_u.id JOIN {enrol} ej513_e ON (ej513_e.id = ej513_ue.enrolid AND ej513_e.courseid = :ej513_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu513_u.id LEFT JOIN {groups_members} gm513_gm2 ON (gm513_gm2.userid = eu513_u.id AND gm513_gm2.groupid = :gm513_3078) WHERE 1 = 1 AND ej513_ue.status = :ej513_active AND ej513_e.status = :ej513_enabled AND ej513_ue.timestart < :ej513_now1 AND (ej513_ue.timeend = 0 OR ej513_ue.timeend > :ej513_now2) AND eu513_u.deleted = 0 AND eu513_u.id <> :eu513_guestid AND gm513_gm2.userid IS NOT NULL AND eu513_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu514_u.id FROM {user} eu514_u JOIN {user_enrolments} ej514_ue ON ej514_ue.userid = eu514_u.id JOIN {enrol} ej514_e ON (ej514_e.id = ej514_ue.enrolid AND ej514_e.courseid = :ej514_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu514_u.id LEFT JOIN {groups_members} gm514_gm2 ON (gm514_gm2.userid = eu514_u.id AND gm514_gm2.groupid = :gm514_3084) WHERE 1 = 1 AND ej514_ue.status = :ej514_active AND ej514_e.status = :ej514_enabled AND ej514_ue.timestart < :ej514_now1 AND (ej514_ue.timeend = 0 OR ej514_ue.timeend > :ej514_now2) AND eu514_u.deleted = 0 AND eu514_u.id <> :eu514_guestid AND gm514_gm2.userid IS NOT NULL AND eu514_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu515_u.id FROM {user} eu515_u JOIN {user_enrolments} ej515_ue ON ej515_ue.userid = eu515_u.id JOIN {enrol} ej515_e ON (ej515_e.id = ej515_ue.enrolid AND ej515_e.courseid = :ej515_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu515_u.id LEFT JOIN {groups_members} gm515_gm2 ON (gm515_gm2.userid = eu515_u.id AND gm515_gm2.groupid = :gm515_3090) WHERE 1 = 1 AND ej515_ue.status = :ej515_active AND ej515_e.status = :ej515_enabled AND ej515_ue.timestart < :ej515_now1 AND (ej515_ue.timeend = 0 OR ej515_ue.timeend > :ej515_now2) AND eu515_u.deleted = 0 AND eu515_u.id <> :eu515_guestid AND gm515_gm2.userid IS NOT NULL AND eu515_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu516_u.id FROM {user} eu516_u JOIN {user_enrolments} ej516_ue ON ej516_ue.userid = eu516_u.id JOIN {enrol} ej516_e ON (ej516_e.id = ej516_ue.enrolid AND ej516_e.courseid = :ej516_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu516_u.id LEFT JOIN {groups_members} gm516_gm2 ON (gm516_gm2.userid = eu516_u.id AND gm516_gm2.groupid = :gm516_3096) WHERE 1 = 1 AND ej516_ue.status = :ej516_active AND ej516_e.status = :ej516_enabled AND ej516_ue.timestart < :ej516_now1 AND (ej516_ue.timeend = 0 OR ej516_ue.timeend > :ej516_now2) AND eu516_u.deleted = 0 AND eu516_u.id <> :eu516_guestid AND gm516_gm2.userid IS NOT NULL AND eu516_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu517_u.id FROM {user} eu517_u JOIN {user_enrolments} ej517_ue ON ej517_ue.userid = eu517_u.id JOIN {enrol} ej517_e ON (ej517_e.id = ej517_ue.enrolid AND ej517_e.courseid = :ej517_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu517_u.id LEFT JOIN {groups_members} gm517_gm2 ON (gm517_gm2.userid = eu517_u.id AND gm517_gm2.groupid = :gm517_3102) WHERE 1 = 1 AND ej517_ue.status = :ej517_active AND ej517_e.status = :ej517_enabled AND ej517_ue.timestart < :ej517_now1 AND (ej517_ue.timeend = 0 OR ej517_ue.timeend > :ej517_now2) AND eu517_u.deleted = 0 AND eu517_u.id <> :eu517_guestid AND gm517_gm2.userid IS NOT NULL AND eu517_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu518_u.id FROM {user} eu518_u JOIN {user_enrolments} ej518_ue ON ej518_ue.userid = eu518_u.id JOIN {enrol} ej518_e ON (ej518_e.id = ej518_ue.enrolid AND ej518_e.courseid = :ej518_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu518_u.id LEFT JOIN {groups_members} gm518_gm2 ON (gm518_gm2.userid = eu518_u.id AND gm518_gm2.groupid = :gm518_3108) WHERE 1 = 1 AND ej518_ue.status = :ej518_active AND ej518_e.status = :ej518_enabled AND ej518_ue.timestart < :ej518_now1 AND (ej518_ue.timeend = 0 OR ej518_ue.timeend > :ej518_now2) AND eu518_u.deleted = 0 AND eu518_u.id <> :eu518_guestid AND gm518_gm2.userid IS NOT NULL AND eu518_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu519_u.id FROM {user} eu519_u JOIN {user_enrolments} ej519_ue ON ej519_ue.userid = eu519_u.id JOIN {enrol} ej519_e ON (ej519_e.id = ej519_ue.enrolid AND ej519_e.courseid = :ej519_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu519_u.id LEFT JOIN {groups_members} gm519_gm2 ON (gm519_gm2.userid = eu519_u.id AND gm519_gm2.groupid = :gm519_3114) WHERE 1 = 1 AND ej519_ue.status = :ej519_active AND ej519_e.status = :ej519_enabled AND ej519_ue.timestart < :ej519_now1 AND (ej519_ue.timeend = 0 OR ej519_ue.timeend > :ej519_now2) AND eu519_u.deleted = 0 AND eu519_u.id <> :eu519_guestid AND gm519_gm2.userid IS NOT NULL AND eu519_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu520_u.id FROM {user} eu520_u JOIN {user_enrolments} ej520_ue ON ej520_ue.userid = eu520_u.id JOIN {enrol} ej520_e ON (ej520_e.id = ej520_ue.enrolid AND ej520_e.courseid = :ej520_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu520_u.id LEFT JOIN {groups_members} gm520_gm2 ON (gm520_gm2.userid = eu520_u.id AND gm520_gm2.groupid = :gm520_3120) WHERE 1 = 1 AND ej520_ue.status = :ej520_active AND ej520_e.status = :ej520_enabled AND ej520_ue.timestart < :ej520_now1 AND (ej520_ue.timeend = 0 OR ej520_ue.timeend > :ej520_now2) AND eu520_u.deleted = 0 AND eu520_u.id <> :eu520_guestid AND gm520_gm2.userid IS NOT NULL AND eu520_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu521_u.id FROM {user} eu521_u JOIN {user_enrolments} ej521_ue ON ej521_ue.userid = eu521_u.id JOIN {enrol} ej521_e ON (ej521_e.id = ej521_ue.enrolid AND ej521_e.courseid = :ej521_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu521_u.id LEFT JOIN {groups_members} gm521_gm2 ON (gm521_gm2.userid = eu521_u.id AND gm521_gm2.groupid = :gm521_3126) WHERE 1 = 1 AND ej521_ue.status = :ej521_active AND ej521_e.status = :ej521_enabled AND ej521_ue.timestart < :ej521_now1 AND (ej521_ue.timeend = 0 OR ej521_ue.timeend > :ej521_now2) AND eu521_u.deleted = 0 AND eu521_u.id <> :eu521_guestid AND gm521_gm2.userid IS NOT NULL AND eu521_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu522_u.id FROM {user} eu522_u JOIN {user_enrolments} ej522_ue ON ej522_ue.userid = eu522_u.id JOIN {enrol} ej522_e ON (ej522_e.id = ej522_ue.enrolid AND ej522_e.courseid = :ej522_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu522_u.id LEFT JOIN {groups_members} gm522_gm2 ON (gm522_gm2.userid = eu522_u.id AND gm522_gm2.groupid = :gm522_3132) WHERE 1 = 1 AND ej522_ue.status = :ej522_active AND ej522_e.status = :ej522_enabled AND ej522_ue.timestart < :ej522_now1 AND (ej522_ue.timeend = 0 OR ej522_ue.timeend > :ej522_now2) AND eu522_u.deleted = 0 AND eu522_u.id <> :eu522_guestid AND gm522_gm2.userid IS NOT NULL AND eu522_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu523_u.id FROM {user} eu523_u JOIN {user_enrolments} ej523_ue ON ej523_ue.userid = eu523_u.id JOIN {enrol} ej523_e ON (ej523_e.id = ej523_ue.enrolid AND ej523_e.courseid = :ej523_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu523_u.id LEFT JOIN {groups_members} gm523_gm2 ON (gm523_gm2.userid = eu523_u.id AND gm523_gm2.groupid = :gm523_3138) WHERE 1 = 1 AND ej523_ue.status = :ej523_active AND ej523_e.status = :ej523_enabled AND ej523_ue.timestart < :ej523_now1 AND (ej523_ue.timeend = 0 OR ej523_ue.timeend > :ej523_now2) AND eu523_u.deleted = 0 AND eu523_u.id <> :eu523_guestid AND gm523_gm2.userid IS NOT NULL AND eu523_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu524_u.id FROM {user} eu524_u JOIN {user_enrolments} ej524_ue ON ej524_ue.userid = eu524_u.id JOIN {enrol} ej524_e ON (ej524_e.id = ej524_ue.enrolid AND ej524_e.courseid = :ej524_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu524_u.id LEFT JOIN {groups_members} gm524_gm2 ON (gm524_gm2.userid = eu524_u.id AND gm524_gm2.groupid = :gm524_3144) WHERE 1 = 1 AND ej524_ue.status = :ej524_active AND ej524_e.status = :ej524_enabled AND ej524_ue.timestart < :ej524_now1 AND (ej524_ue.timeend = 0 OR ej524_ue.timeend > :ej524_now2) AND eu524_u.deleted = 0 AND eu524_u.id <> :eu524_guestid AND gm524_gm2.userid IS NOT NULL AND eu524_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu525_u.id FROM {user} eu525_u JOIN {user_enrolments} ej525_ue ON ej525_ue.userid = eu525_u.id JOIN {enrol} ej525_e ON (ej525_e.id = ej525_ue.enrolid AND ej525_e.courseid = :ej525_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu525_u.id LEFT JOIN {groups_members} gm525_gm2 ON (gm525_gm2.userid = eu525_u.id AND gm525_gm2.groupid = :gm525_3150) WHERE 1 = 1 AND ej525_ue.status = :ej525_active AND ej525_e.status = :ej525_enabled AND ej525_ue.timestart < :ej525_now1 AND (ej525_ue.timeend = 0 OR ej525_ue.timeend > :ej525_now2) AND eu525_u.deleted = 0 AND eu525_u.id <> :eu525_guestid AND gm525_gm2.userid IS NOT NULL AND eu525_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu526_u.id FROM {user} eu526_u JOIN {user_enrolments} ej526_ue ON ej526_ue.userid = eu526_u.id JOIN {enrol} ej526_e ON (ej526_e.id = ej526_ue.enrolid AND ej526_e.courseid = :ej526_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu526_u.id LEFT JOIN {groups_members} gm526_gm2 ON (gm526_gm2.userid = eu526_u.id AND gm526_gm2.groupid = :gm526_3156) WHERE 1 = 1 AND ej526_ue.status = :ej526_active AND ej526_e.status = :ej526_enabled AND ej526_ue.timestart < :ej526_now1 AND (ej526_ue.timeend = 0 OR ej526_ue.timeend > :ej526_now2) AND eu526_u.deleted = 0 AND eu526_u.id <> :eu526_guestid AND gm526_gm2.userid IS NOT NULL AND eu526_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu527_u.id FROM {user} eu527_u JOIN {user_enrolments} ej527_ue ON ej527_ue.userid = eu527_u.id JOIN {enrol} ej527_e ON (ej527_e.id = ej527_ue.enrolid AND ej527_e.courseid = :ej527_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu527_u.id LEFT JOIN {groups_members} gm527_gm2 ON (gm527_gm2.userid = eu527_u.id AND gm527_gm2.groupid = :gm527_3162) WHERE 1 = 1 AND ej527_ue.status = :ej527_active AND ej527_e.status = :ej527_enabled AND ej527_ue.timestart < :ej527_now1 AND (ej527_ue.timeend = 0 OR ej527_ue.timeend > :ej527_now2) AND eu527_u.deleted = 0 AND eu527_u.id <> :eu527_guestid AND gm527_gm2.userid IS NOT NULL AND eu527_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu528_u.id FROM {user} eu528_u JOIN {user_enrolments} ej528_ue ON ej528_ue.userid = eu528_u.id JOIN {enrol} ej528_e ON (ej528_e.id = ej528_ue.enrolid AND ej528_e.courseid = :ej528_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu528_u.id LEFT JOIN {groups_members} gm528_gm2 ON (gm528_gm2.userid = eu528_u.id AND gm528_gm2.groupid = :gm528_3168) WHERE 1 = 1 AND ej528_ue.status = :ej528_active AND ej528_e.status = :ej528_enabled AND ej528_ue.timestart < :ej528_now1 AND (ej528_ue.timeend = 0 OR ej528_ue.timeend > :ej528_now2) AND eu528_u.deleted = 0 AND eu528_u.id <> :eu528_guestid AND gm528_gm2.userid IS NOT NULL AND eu528_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu529_u.id FROM {user} eu529_u JOIN {user_enrolments} ej529_ue ON ej529_ue.userid = eu529_u.id JOIN {enrol} ej529_e ON (ej529_e.id = ej529_ue.enrolid AND ej529_e.courseid = :ej529_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu529_u.id LEFT JOIN {groups_members} gm529_gm2 ON (gm529_gm2.userid = eu529_u.id AND gm529_gm2.groupid = :gm529_3174) WHERE 1 = 1 AND ej529_ue.status = :ej529_active AND ej529_e.status = :ej529_enabled AND ej529_ue.timestart < :ej529_now1 AND (ej529_ue.timeend = 0 OR ej529_ue.timeend > :ej529_now2) AND eu529_u.deleted = 0 AND eu529_u.id <> :eu529_guestid AND gm529_gm2.userid IS NOT NULL AND eu529_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu530_u.id FROM {user} eu530_u JOIN {user_enrolments} ej530_ue ON ej530_ue.userid = eu530_u.id JOIN {enrol} ej530_e ON (ej530_e.id = ej530_ue.enrolid AND ej530_e.courseid = :ej530_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu530_u.id LEFT JOIN {groups_members} gm530_gm2 ON (gm530_gm2.userid = eu530_u.id AND gm530_gm2.groupid = :gm530_3180) WHERE 1 = 1 AND ej530_ue.status = :ej530_active AND ej530_e.status = :ej530_enabled AND ej530_ue.timestart < :ej530_now1 AND (ej530_ue.timeend = 0 OR ej530_ue.timeend > :ej530_now2) AND eu530_u.deleted = 0 AND eu530_u.id <> :eu530_guestid AND gm530_gm2.userid IS NOT NULL AND eu530_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu531_u.id FROM {user} eu531_u JOIN {user_enrolments} ej531_ue ON ej531_ue.userid = eu531_u.id JOIN {enrol} ej531_e ON (ej531_e.id = ej531_ue.enrolid AND ej531_e.courseid = :ej531_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu531_u.id LEFT JOIN {groups_members} gm531_gm2 ON (gm531_gm2.userid = eu531_u.id AND gm531_gm2.groupid = :gm531_3186) WHERE 1 = 1 AND ej531_ue.status = :ej531_active AND ej531_e.status = :ej531_enabled AND ej531_ue.timestart < :ej531_now1 AND (ej531_ue.timeend = 0 OR ej531_ue.timeend > :ej531_now2) AND eu531_u.deleted = 0 AND eu531_u.id <> :eu531_guestid AND gm531_gm2.userid IS NOT NULL AND eu531_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu532_u.id FROM {user} eu532_u JOIN {user_enrolments} ej532_ue ON ej532_ue.userid = eu532_u.id JOIN {enrol} ej532_e ON (ej532_e.id = ej532_ue.enrolid AND ej532_e.courseid = :ej532_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu532_u.id LEFT JOIN {groups_members} gm532_gm2 ON (gm532_gm2.userid = eu532_u.id AND gm532_gm2.groupid = :gm532_3192) WHERE 1 = 1 AND ej532_ue.status = :ej532_active AND ej532_e.status = :ej532_enabled AND ej532_ue.timestart < :ej532_now1 AND (ej532_ue.timeend = 0 OR ej532_ue.timeend > :ej532_now2) AND eu532_u.deleted = 0 AND eu532_u.id <> :eu532_guestid AND gm532_gm2.userid IS NOT NULL AND eu532_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu533_u.id FROM {user} eu533_u JOIN {user_enrolments} ej533_ue ON ej533_ue.userid = eu533_u.id JOIN {enrol} ej533_e ON (ej533_e.id = ej533_ue.enrolid AND ej533_e.courseid = :ej533_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu533_u.id LEFT JOIN {groups_members} gm533_gm2 ON (gm533_gm2.userid = eu533_u.id AND gm533_gm2.groupid = :gm533_3198) WHERE 1 = 1 AND ej533_ue.status = :ej533_active AND ej533_e.status = :ej533_enabled AND ej533_ue.timestart < :ej533_now1 AND (ej533_ue.timeend = 0 OR ej533_ue.timeend > :ej533_now2) AND eu533_u.deleted = 0 AND eu533_u.id <> :eu533_guestid AND gm533_gm2.userid IS NOT NULL AND eu533_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu534_u.id FROM {user} eu534_u JOIN {user_enrolments} ej534_ue ON ej534_ue.userid = eu534_u.id JOIN {enrol} ej534_e ON (ej534_e.id = ej534_ue.enrolid AND ej534_e.courseid = :ej534_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu534_u.id LEFT JOIN {groups_members} gm534_gm2 ON (gm534_gm2.userid = eu534_u.id AND gm534_gm2.groupid = :gm534_3204) WHERE 1 = 1 AND ej534_ue.status = :ej534_active AND ej534_e.status = :ej534_enabled AND ej534_ue.timestart < :ej534_now1 AND (ej534_ue.timeend = 0 OR ej534_ue.timeend > :ej534_now2) AND eu534_u.deleted = 0 AND eu534_u.id <> :eu534_guestid AND gm534_gm2.userid IS NOT NULL AND eu534_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu535_u.id FROM {user} eu535_u JOIN {user_enrolments} ej535_ue ON ej535_ue.userid = eu535_u.id JOIN {enrol} ej535_e ON (ej535_e.id = ej535_ue.enrolid AND ej535_e.courseid = :ej535_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu535_u.id LEFT JOIN {groups_members} gm535_gm2 ON (gm535_gm2.userid = eu535_u.id AND gm535_gm2.groupid = :gm535_3210) WHERE 1 = 1 AND ej535_ue.status = :ej535_active AND ej535_e.status = :ej535_enabled AND ej535_ue.timestart < :ej535_now1 AND (ej535_ue.timeend = 0 OR ej535_ue.timeend > :ej535_now2) AND eu535_u.deleted = 0 AND eu535_u.id <> :eu535_guestid AND gm535_gm2.userid IS NOT NULL AND eu535_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu536_u.id FROM {user} eu536_u JOIN {user_enrolments} ej536_ue ON ej536_ue.userid = eu536_u.id JOIN {enrol} ej536_e ON (ej536_e.id = ej536_ue.enrolid AND ej536_e.courseid = :ej536_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu536_u.id LEFT JOIN {groups_members} gm536_gm2 ON (gm536_gm2.userid = eu536_u.id AND gm536_gm2.groupid = :gm536_3216) WHERE 1 = 1 AND ej536_ue.status = :ej536_active AND ej536_e.status = :ej536_enabled AND ej536_ue.timestart < :ej536_now1 AND (ej536_ue.timeend = 0 OR ej536_ue.timeend > :ej536_now2) AND eu536_u.deleted = 0 AND eu536_u.id <> :eu536_guestid AND gm536_gm2.userid IS NOT NULL AND eu536_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu537_u.id FROM {user} eu537_u JOIN {user_enrolments} ej537_ue ON ej537_ue.userid = eu537_u.id JOIN {enrol} ej537_e ON (ej537_e.id = ej537_ue.enrolid AND ej537_e.courseid = :ej537_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu537_u.id LEFT JOIN {groups_members} gm537_gm2 ON (gm537_gm2.userid = eu537_u.id AND gm537_gm2.groupid = :gm537_3222) WHERE 1 = 1 AND ej537_ue.status = :ej537_active AND ej537_e.status = :ej537_enabled AND ej537_ue.timestart < :ej537_now1 AND (ej537_ue.timeend = 0 OR ej537_ue.timeend > :ej537_now2) AND eu537_u.deleted = 0 AND eu537_u.id <> :eu537_guestid AND gm537_gm2.userid IS NOT NULL AND eu537_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu538_u.id FROM {user} eu538_u JOIN {user_enrolments} ej538_ue ON ej538_ue.userid = eu538_u.id JOIN {enrol} ej538_e ON (ej538_e.id = ej538_ue.enrolid AND ej538_e.courseid = :ej538_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu538_u.id LEFT JOIN {groups_members} gm538_gm2 ON (gm538_gm2.userid = eu538_u.id AND gm538_gm2.groupid = :gm538_3228) WHERE 1 = 1 AND ej538_ue.status = :ej538_active AND ej538_e.status = :ej538_enabled AND ej538_ue.timestart < :ej538_now1 AND (ej538_ue.timeend = 0 OR ej538_ue.timeend > :ej538_now2) AND eu538_u.deleted = 0 AND eu538_u.id <> :eu538_guestid AND gm538_gm2.userid IS NOT NULL AND eu538_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu539_u.id FROM {user} eu539_u JOIN {user_enrolments} ej539_ue ON ej539_ue.userid = eu539_u.id JOIN {enrol} ej539_e ON (ej539_e.id = ej539_ue.enrolid AND ej539_e.courseid = :ej539_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu539_u.id LEFT JOIN {groups_members} gm539_gm2 ON (gm539_gm2.userid = eu539_u.id AND gm539_gm2.groupid = :gm539_3234) WHERE 1 = 1 AND ej539_ue.status = :ej539_active AND ej539_e.status = :ej539_enabled AND ej539_ue.timestart < :ej539_now1 AND (ej539_ue.timeend = 0 OR ej539_ue.timeend > :ej539_now2) AND eu539_u.deleted = 0 AND eu539_u.id <> :eu539_guestid AND gm539_gm2.userid IS NOT NULL AND eu539_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu540_u.id FROM {user} eu540_u JOIN {user_enrolments} ej540_ue ON ej540_ue.userid = eu540_u.id JOIN {enrol} ej540_e ON (ej540_e.id = ej540_ue.enrolid AND ej540_e.courseid = :ej540_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu540_u.id LEFT JOIN {groups_members} gm540_gm2 ON (gm540_gm2.userid = eu540_u.id AND gm540_gm2.groupid = :gm540_3240) WHERE 1 = 1 AND ej540_ue.status = :ej540_active AND ej540_e.status = :ej540_enabled AND ej540_ue.timestart < :ej540_now1 AND (ej540_ue.timeend = 0 OR ej540_ue.timeend > :ej540_now2) AND eu540_u.deleted = 0 AND eu540_u.id <> :eu540_guestid AND gm540_gm2.userid IS NOT NULL AND eu540_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu541_u.id FROM {user} eu541_u JOIN {user_enrolments} ej541_ue ON ej541_ue.userid = eu541_u.id JOIN {enrol} ej541_e ON (ej541_e.id = ej541_ue.enrolid AND ej541_e.courseid = :ej541_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu541_u.id LEFT JOIN {groups_members} gm541_gm2 ON (gm541_gm2.userid = eu541_u.id AND gm541_gm2.groupid = :gm541_3246) WHERE 1 = 1 AND ej541_ue.status = :ej541_active AND ej541_e.status = :ej541_enabled AND ej541_ue.timestart < :ej541_now1 AND (ej541_ue.timeend = 0 OR ej541_ue.timeend > :ej541_now2) AND eu541_u.deleted = 0 AND eu541_u.id <> :eu541_guestid AND gm541_gm2.userid IS NOT NULL AND eu541_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu542_u.id FROM {user} eu542_u JOIN {user_enrolments} ej542_ue ON ej542_ue.userid = eu542_u.id JOIN {enrol} ej542_e ON (ej542_e.id = ej542_ue.enrolid AND ej542_e.courseid = :ej542_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu542_u.id LEFT JOIN {groups_members} gm542_gm2 ON (gm542_gm2.userid = eu542_u.id AND gm542_gm2.groupid = :gm542_3252) WHERE 1 = 1 AND ej542_ue.status = :ej542_active AND ej542_e.status = :ej542_enabled AND ej542_ue.timestart < :ej542_now1 AND (ej542_ue.timeend = 0 OR ej542_ue.timeend > :ej542_now2) AND eu542_u.deleted = 0 AND eu542_u.id <> :eu542_guestid AND gm542_gm2.userid IS NOT NULL AND eu542_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu543_u.id FROM {user} eu543_u JOIN {user_enrolments} ej543_ue ON ej543_ue.userid = eu543_u.id JOIN {enrol} ej543_e ON (ej543_e.id = ej543_ue.enrolid AND ej543_e.courseid = :ej543_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu543_u.id LEFT JOIN {groups_members} gm543_gm2 ON (gm543_gm2.userid = eu543_u.id AND gm543_gm2.groupid = :gm543_3258) WHERE 1 = 1 AND ej543_ue.status = :ej543_active AND ej543_e.status = :ej543_enabled AND ej543_ue.timestart < :ej543_now1 AND (ej543_ue.timeend = 0 OR ej543_ue.timeend > :ej543_now2) AND eu543_u.deleted = 0 AND eu543_u.id <> :eu543_guestid AND gm543_gm2.userid IS NOT NULL AND eu543_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu544_u.id FROM {user} eu544_u JOIN {user_enrolments} ej544_ue ON ej544_ue.userid = eu544_u.id JOIN {enrol} ej544_e ON (ej544_e.id = ej544_ue.enrolid AND ej544_e.courseid = :ej544_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu544_u.id LEFT JOIN {groups_members} gm544_gm2 ON (gm544_gm2.userid = eu544_u.id AND gm544_gm2.groupid = :gm544_3264) WHERE 1 = 1 AND ej544_ue.status = :ej544_active AND ej544_e.status = :ej544_enabled AND ej544_ue.timestart < :ej544_now1 AND (ej544_ue.timeend = 0 OR ej544_ue.timeend > :ej544_now2) AND eu544_u.deleted = 0 AND eu544_u.id <> :eu544_guestid AND gm544_gm2.userid IS NOT NULL AND eu544_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu545_u.id FROM {user} eu545_u JOIN {user_enrolments} ej545_ue ON ej545_ue.userid = eu545_u.id JOIN {enrol} ej545_e ON (ej545_e.id = ej545_ue.enrolid AND ej545_e.courseid = :ej545_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu545_u.id LEFT JOIN {groups_members} gm545_gm2 ON (gm545_gm2.userid = eu545_u.id AND gm545_gm2.groupid = :gm545_3270) WHERE 1 = 1 AND ej545_ue.status = :ej545_active AND ej545_e.status = :ej545_enabled AND ej545_ue.timestart < :ej545_now1 AND (ej545_ue.timeend = 0 OR ej545_ue.timeend > :ej545_now2) AND eu545_u.deleted = 0 AND eu545_u.id <> :eu545_guestid AND gm545_gm2.userid IS NOT NULL AND eu545_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu546_u.id FROM {user} eu546_u JOIN {user_enrolments} ej546_ue ON ej546_ue.userid = eu546_u.id JOIN {enrol} ej546_e ON (ej546_e.id = ej546_ue.enrolid AND ej546_e.courseid = :ej546_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu546_u.id LEFT JOIN {groups_members} gm546_gm2 ON (gm546_gm2.userid = eu546_u.id AND gm546_gm2.groupid = :gm546_3276) WHERE 1 = 1 AND ej546_ue.status = :ej546_active AND ej546_e.status = :ej546_enabled AND ej546_ue.timestart < :ej546_now1 AND (ej546_ue.timeend = 0 OR ej546_ue.timeend > :ej546_now2) AND eu546_u.deleted = 0 AND eu546_u.id <> :eu546_guestid AND gm546_gm2.userid IS NOT NULL AND eu546_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu547_u.id FROM {user} eu547_u JOIN {user_enrolments} ej547_ue ON ej547_ue.userid = eu547_u.id JOIN {enrol} ej547_e ON (ej547_e.id = ej547_ue.enrolid AND ej547_e.courseid = :ej547_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu547_u.id LEFT JOIN {groups_members} gm547_gm2 ON (gm547_gm2.userid = eu547_u.id AND gm547_gm2.groupid = :gm547_3282) WHERE 1 = 1 AND ej547_ue.status = :ej547_active AND ej547_e.status = :ej547_enabled AND ej547_ue.timestart < :ej547_now1 AND (ej547_ue.timeend = 0 OR ej547_ue.timeend > :ej547_now2) AND eu547_u.deleted = 0 AND eu547_u.id <> :eu547_guestid AND gm547_gm2.userid IS NOT NULL AND eu547_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu548_u.id FROM {user} eu548_u JOIN {user_enrolments} ej548_ue ON ej548_ue.userid = eu548_u.id JOIN {enrol} ej548_e ON (ej548_e.id = ej548_ue.enrolid AND ej548_e.courseid = :ej548_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu548_u.id LEFT JOIN {groups_members} gm548_gm2 ON (gm548_gm2.userid = eu548_u.id AND gm548_gm2.groupid = :gm548_3288) WHERE 1 = 1 AND ej548_ue.status = :ej548_active AND ej548_e.status = :ej548_enabled AND ej548_ue.timestart < :ej548_now1 AND (ej548_ue.timeend = 0 OR ej548_ue.timeend > :ej548_now2) AND eu548_u.deleted = 0 AND eu548_u.id <> :eu548_guestid AND gm548_gm2.userid IS NOT NULL AND eu548_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu549_u.id FROM {user} eu549_u JOIN {user_enrolments} ej549_ue ON ej549_ue.userid = eu549_u.id JOIN {enrol} ej549_e ON (ej549_e.id = ej549_ue.enrolid AND ej549_e.courseid = :ej549_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu549_u.id LEFT JOIN {groups_members} gm549_gm2 ON (gm549_gm2.userid = eu549_u.id AND gm549_gm2.groupid = :gm549_3294) WHERE 1 = 1 AND ej549_ue.status = :ej549_active AND ej549_e.status = :ej549_enabled AND ej549_ue.timestart < :ej549_now1 AND (ej549_ue.timeend = 0 OR ej549_ue.timeend > :ej549_now2) AND eu549_u.deleted = 0 AND eu549_u.id <> :eu549_guestid AND gm549_gm2.userid IS NOT NULL AND eu549_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu550_u.id FROM {user} eu550_u JOIN {user_enrolments} ej550_ue ON ej550_ue.userid = eu550_u.id JOIN {enrol} ej550_e ON (ej550_e.id = ej550_ue.enrolid AND ej550_e.courseid = :ej550_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu550_u.id LEFT JOIN {groups_members} gm550_gm2 ON (gm550_gm2.userid = eu550_u.id AND gm550_gm2.groupid = :gm550_3300) WHERE 1 = 1 AND ej550_ue.status = :ej550_active AND ej550_e.status = :ej550_enabled AND ej550_ue.timestart < :ej550_now1 AND (ej550_ue.timeend = 0 OR ej550_ue.timeend > :ej550_now2) AND eu550_u.deleted = 0 AND eu550_u.id <> :eu550_guestid AND gm550_gm2.userid IS NOT NULL AND eu550_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu551_u.id FROM {user} eu551_u JOIN {user_enrolments} ej551_ue ON ej551_ue.userid = eu551_u.id JOIN {enrol} ej551_e ON (ej551_e.id = ej551_ue.enrolid AND ej551_e.courseid = :ej551_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu551_u.id LEFT JOIN {groups_members} gm551_gm2 ON (gm551_gm2.userid = eu551_u.id AND gm551_gm2.groupid = :gm551_3306) WHERE 1 = 1 AND ej551_ue.status = :ej551_active AND ej551_e.status = :ej551_enabled AND ej551_ue.timestart < :ej551_now1 AND (ej551_ue.timeend = 0 OR ej551_ue.timeend > :ej551_now2) AND eu551_u.deleted = 0 AND eu551_u.id <> :eu551_guestid AND gm551_gm2.userid IS NOT NULL AND eu551_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu552_u.id FROM {user} eu552_u JOIN {user_enrolments} ej552_ue ON ej552_ue.userid = eu552_u.id JOIN {enrol} ej552_e ON (ej552_e.id = ej552_ue.enrolid AND ej552_e.courseid = :ej552_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu552_u.id LEFT JOIN {groups_members} gm552_gm2 ON (gm552_gm2.userid = eu552_u.id AND gm552_gm2.groupid = :gm552_3312) WHERE 1 = 1 AND ej552_ue.status = :ej552_active AND ej552_e.status = :ej552_enabled AND ej552_ue.timestart < :ej552_now1 AND (ej552_ue.timeend = 0 OR ej552_ue.timeend > :ej552_now2) AND eu552_u.deleted = 0 AND eu552_u.id <> :eu552_guestid AND gm552_gm2.userid IS NOT NULL AND eu552_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu553_u.id FROM {user} eu553_u JOIN {user_enrolments} ej553_ue ON ej553_ue.userid = eu553_u.id JOIN {enrol} ej553_e ON (ej553_e.id = ej553_ue.enrolid AND ej553_e.courseid = :ej553_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu553_u.id LEFT JOIN {groups_members} gm553_gm2 ON (gm553_gm2.userid = eu553_u.id AND gm553_gm2.groupid = :gm553_3318) WHERE 1 = 1 AND ej553_ue.status = :ej553_active AND ej553_e.status = :ej553_enabled AND ej553_ue.timestart < :ej553_now1 AND (ej553_ue.timeend = 0 OR ej553_ue.timeend > :ej553_now2) AND eu553_u.deleted = 0 AND eu553_u.id <> :eu553_guestid AND gm553_gm2.userid IS NOT NULL AND eu553_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu554_u.id FROM {user} eu554_u JOIN {user_enrolments} ej554_ue ON ej554_ue.userid = eu554_u.id JOIN {enrol} ej554_e ON (ej554_e.id = ej554_ue.enrolid AND ej554_e.courseid = :ej554_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu554_u.id LEFT JOIN {groups_members} gm554_gm2 ON (gm554_gm2.userid = eu554_u.id AND gm554_gm2.groupid = :gm554_3324) WHERE 1 = 1 AND ej554_ue.status = :ej554_active AND ej554_e.status = :ej554_enabled AND ej554_ue.timestart < :ej554_now1 AND (ej554_ue.timeend = 0 OR ej554_ue.timeend > :ej554_now2) AND eu554_u.deleted = 0 AND eu554_u.id <> :eu554_guestid AND gm554_gm2.userid IS NOT NULL AND eu554_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu555_u.id FROM {user} eu555_u JOIN {user_enrolments} ej555_ue ON ej555_ue.userid = eu555_u.id JOIN {enrol} ej555_e ON (ej555_e.id = ej555_ue.enrolid AND ej555_e.courseid = :ej555_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu555_u.id LEFT JOIN {groups_members} gm555_gm2 ON (gm555_gm2.userid = eu555_u.id AND gm555_gm2.groupid = :gm555_3330) WHERE 1 = 1 AND ej555_ue.status = :ej555_active AND ej555_e.status = :ej555_enabled AND ej555_ue.timestart < :ej555_now1 AND (ej555_ue.timeend = 0 OR ej555_ue.timeend > :ej555_now2) AND eu555_u.deleted = 0 AND eu555_u.id <> :eu555_guestid AND gm555_gm2.userid IS NOT NULL AND eu555_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu556_u.id FROM {user} eu556_u JOIN {user_enrolments} ej556_ue ON ej556_ue.userid = eu556_u.id JOIN {enrol} ej556_e ON (ej556_e.id = ej556_ue.enrolid AND ej556_e.courseid = :ej556_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu556_u.id LEFT JOIN {groups_members} gm556_gm2 ON (gm556_gm2.userid = eu556_u.id AND gm556_gm2.groupid = :gm556_3336) WHERE 1 = 1 AND ej556_ue.status = :ej556_active AND ej556_e.status = :ej556_enabled AND ej556_ue.timestart < :ej556_now1 AND (ej556_ue.timeend = 0 OR ej556_ue.timeend > :ej556_now2) AND eu556_u.deleted = 0 AND eu556_u.id <> :eu556_guestid AND gm556_gm2.userid IS NOT NULL AND eu556_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu557_u.id FROM {user} eu557_u JOIN {user_enrolments} ej557_ue ON ej557_ue.userid = eu557_u.id JOIN {enrol} ej557_e ON (ej557_e.id = ej557_ue.enrolid AND ej557_e.courseid = :ej557_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu557_u.id LEFT JOIN {groups_members} gm557_gm2 ON (gm557_gm2.userid = eu557_u.id AND gm557_gm2.groupid = :gm557_3342) WHERE 1 = 1 AND ej557_ue.status = :ej557_active AND ej557_e.status = :ej557_enabled AND ej557_ue.timestart < :ej557_now1 AND (ej557_ue.timeend = 0 OR ej557_ue.timeend > :ej557_now2) AND eu557_u.deleted = 0 AND eu557_u.id <> :eu557_guestid AND gm557_gm2.userid IS NOT NULL AND eu557_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu558_u.id FROM {user} eu558_u JOIN {user_enrolments} ej558_ue ON ej558_ue.userid = eu558_u.id JOIN {enrol} ej558_e ON (ej558_e.id = ej558_ue.enrolid AND ej558_e.courseid = :ej558_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu558_u.id LEFT JOIN {groups_members} gm558_gm2 ON (gm558_gm2.userid = eu558_u.id AND gm558_gm2.groupid = :gm558_3348) WHERE 1 = 1 AND ej558_ue.status = :ej558_active AND ej558_e.status = :ej558_enabled AND ej558_ue.timestart < :ej558_now1 AND (ej558_ue.timeend = 0 OR ej558_ue.timeend > :ej558_now2) AND eu558_u.deleted = 0 AND eu558_u.id <> :eu558_guestid AND gm558_gm2.userid IS NOT NULL AND eu558_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu559_u.id FROM {user} eu559_u JOIN {user_enrolments} ej559_ue ON ej559_ue.userid = eu559_u.id JOIN {enrol} ej559_e ON (ej559_e.id = ej559_ue.enrolid AND ej559_e.courseid = :ej559_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu559_u.id LEFT JOIN {groups_members} gm559_gm2 ON (gm559_gm2.userid = eu559_u.id AND gm559_gm2.groupid = :gm559_3354) WHERE 1 = 1 AND ej559_ue.status = :ej559_active AND ej559_e.status = :ej559_enabled AND ej559_ue.timestart < :ej559_now1 AND (ej559_ue.timeend = 0 OR ej559_ue.timeend > :ej559_now2) AND eu559_u.deleted = 0 AND eu559_u.id <> :eu559_guestid AND gm559_gm2.userid IS NOT NULL AND eu559_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu560_u.id FROM {user} eu560_u JOIN {user_enrolments} ej560_ue ON ej560_ue.userid = eu560_u.id JOIN {enrol} ej560_e ON (ej560_e.id = ej560_ue.enrolid AND ej560_e.courseid = :ej560_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu560_u.id LEFT JOIN {groups_members} gm560_gm2 ON (gm560_gm2.userid = eu560_u.id AND gm560_gm2.groupid = :gm560_3360) WHERE 1 = 1 AND ej560_ue.status = :ej560_active AND ej560_e.status = :ej560_enabled AND ej560_ue.timestart < :ej560_now1 AND (ej560_ue.timeend = 0 OR ej560_ue.timeend > :ej560_now2) AND eu560_u.deleted = 0 AND eu560_u.id <> :eu560_guestid AND gm560_gm2.userid IS NOT NULL AND eu560_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu561_u.id FROM {user} eu561_u JOIN {user_enrolments} ej561_ue ON ej561_ue.userid = eu561_u.id JOIN {enrol} ej561_e ON (ej561_e.id = ej561_ue.enrolid AND ej561_e.courseid = :ej561_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu561_u.id LEFT JOIN {groups_members} gm561_gm2 ON (gm561_gm2.userid = eu561_u.id AND gm561_gm2.groupid = :gm561_3366) WHERE 1 = 1 AND ej561_ue.status = :ej561_active AND ej561_e.status = :ej561_enabled AND ej561_ue.timestart < :ej561_now1 AND (ej561_ue.timeend = 0 OR ej561_ue.timeend > :ej561_now2) AND eu561_u.deleted = 0 AND eu561_u.id <> :eu561_guestid AND gm561_gm2.userid IS NOT NULL AND eu561_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu562_u.id FROM {user} eu562_u JOIN {user_enrolments} ej562_ue ON ej562_ue.userid = eu562_u.id JOIN {enrol} ej562_e ON (ej562_e.id = ej562_ue.enrolid AND ej562_e.courseid = :ej562_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu562_u.id LEFT JOIN {groups_members} gm562_gm2 ON (gm562_gm2.userid = eu562_u.id AND gm562_gm2.groupid = :gm562_3372) WHERE 1 = 1 AND ej562_ue.status = :ej562_active AND ej562_e.status = :ej562_enabled AND ej562_ue.timestart < :ej562_now1 AND (ej562_ue.timeend = 0 OR ej562_ue.timeend > :ej562_now2) AND eu562_u.deleted = 0 AND eu562_u.id <> :eu562_guestid AND gm562_gm2.userid IS NOT NULL AND eu562_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu563_u.id FROM {user} eu563_u JOIN {user_enrolments} ej563_ue ON ej563_ue.userid = eu563_u.id JOIN {enrol} ej563_e ON (ej563_e.id = ej563_ue.enrolid AND ej563_e.courseid = :ej563_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu563_u.id LEFT JOIN {groups_members} gm563_gm2 ON (gm563_gm2.userid = eu563_u.id AND gm563_gm2.groupid = :gm563_3378) WHERE 1 = 1 AND ej563_ue.status = :ej563_active AND ej563_e.status = :ej563_enabled AND ej563_ue.timestart < :ej563_now1 AND (ej563_ue.timeend = 0 OR ej563_ue.timeend > :ej563_now2) AND eu563_u.deleted = 0 AND eu563_u.id <> :eu563_guestid AND gm563_gm2.userid IS NOT NULL AND eu563_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu564_u.id FROM {user} eu564_u JOIN {user_enrolments} ej564_ue ON ej564_ue.userid = eu564_u.id JOIN {enrol} ej564_e ON (ej564_e.id = ej564_ue.enrolid AND ej564_e.courseid = :ej564_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu564_u.id LEFT JOIN {groups_members} gm564_gm2 ON (gm564_gm2.userid = eu564_u.id AND gm564_gm2.groupid = :gm564_3384) WHERE 1 = 1 AND ej564_ue.status = :ej564_active AND ej564_e.status = :ej564_enabled AND ej564_ue.timestart < :ej564_now1 AND (ej564_ue.timeend = 0 OR ej564_ue.timeend > :ej564_now2) AND eu564_u.deleted = 0 AND eu564_u.id <> :eu564_guestid AND gm564_gm2.userid IS NOT NULL AND eu564_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu565_u.id FROM {user} eu565_u JOIN {user_enrolments} ej565_ue ON ej565_ue.userid = eu565_u.id JOIN {enrol} ej565_e ON (ej565_e.id = ej565_ue.enrolid AND ej565_e.courseid = :ej565_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu565_u.id LEFT JOIN {groups_members} gm565_gm2 ON (gm565_gm2.userid = eu565_u.id AND gm565_gm2.groupid = :gm565_3390) WHERE 1 = 1 AND ej565_ue.status = :ej565_active AND ej565_e.status = :ej565_enabled AND ej565_ue.timestart < :ej565_now1 AND (ej565_ue.timeend = 0 OR ej565_ue.timeend > :ej565_now2) AND eu565_u.deleted = 0 AND eu565_u.id <> :eu565_guestid AND gm565_gm2.userid IS NOT NULL AND eu565_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu566_u.id FROM {user} eu566_u JOIN {user_enrolments} ej566_ue ON ej566_ue.userid = eu566_u.id JOIN {enrol} ej566_e ON (ej566_e.id = ej566_ue.enrolid AND ej566_e.courseid = :ej566_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu566_u.id LEFT JOIN {groups_members} gm566_gm2 ON (gm566_gm2.userid = eu566_u.id AND gm566_gm2.groupid = :gm566_3396) WHERE 1 = 1 AND ej566_ue.status = :ej566_active AND ej566_e.status = :ej566_enabled AND ej566_ue.timestart < :ej566_now1 AND (ej566_ue.timeend = 0 OR ej566_ue.timeend > :ej566_now2) AND eu566_u.deleted = 0 AND eu566_u.id <> :eu566_guestid AND gm566_gm2.userid IS NOT NULL AND eu566_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu567_u.id FROM {user} eu567_u JOIN {user_enrolments} ej567_ue ON ej567_ue.userid = eu567_u.id JOIN {enrol} ej567_e ON (ej567_e.id = ej567_ue.enrolid AND ej567_e.courseid = :ej567_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu567_u.id LEFT JOIN {groups_members} gm567_gm2 ON (gm567_gm2.userid = eu567_u.id AND gm567_gm2.groupid = :gm567_3402) WHERE 1 = 1 AND ej567_ue.status = :ej567_active AND ej567_e.status = :ej567_enabled AND ej567_ue.timestart < :ej567_now1 AND (ej567_ue.timeend = 0 OR ej567_ue.timeend > :ej567_now2) AND eu567_u.deleted = 0 AND eu567_u.id <> :eu567_guestid AND gm567_gm2.userid IS NOT NULL AND eu567_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu568_u.id FROM {user} eu568_u JOIN {user_enrolments} ej568_ue ON ej568_ue.userid = eu568_u.id JOIN {enrol} ej568_e ON (ej568_e.id = ej568_ue.enrolid AND ej568_e.courseid = :ej568_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu568_u.id LEFT JOIN {groups_members} gm568_gm2 ON (gm568_gm2.userid = eu568_u.id AND gm568_gm2.groupid = :gm568_3408) WHERE 1 = 1 AND ej568_ue.status = :ej568_active AND ej568_e.status = :ej568_enabled AND ej568_ue.timestart < :ej568_now1 AND (ej568_ue.timeend = 0 OR ej568_ue.timeend > :ej568_now2) AND eu568_u.deleted = 0 AND eu568_u.id <> :eu568_guestid AND gm568_gm2.userid IS NOT NULL AND eu568_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu569_u.id FROM {user} eu569_u JOIN {user_enrolments} ej569_ue ON ej569_ue.userid = eu569_u.id JOIN {enrol} ej569_e ON (ej569_e.id = ej569_ue.enrolid AND ej569_e.courseid = :ej569_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu569_u.id LEFT JOIN {groups_members} gm569_gm2 ON (gm569_gm2.userid = eu569_u.id AND gm569_gm2.groupid = :gm569_3414) WHERE 1 = 1 AND ej569_ue.status = :ej569_active AND ej569_e.status = :ej569_enabled AND ej569_ue.timestart < :ej569_now1 AND (ej569_ue.timeend = 0 OR ej569_ue.timeend > :ej569_now2) AND eu569_u.deleted = 0 AND eu569_u.id <> :eu569_guestid AND gm569_gm2.userid IS NOT NULL AND eu569_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu570_u.id FROM {user} eu570_u JOIN {user_enrolments} ej570_ue ON ej570_ue.userid = eu570_u.id JOIN {enrol} ej570_e ON (ej570_e.id = ej570_ue.enrolid AND ej570_e.courseid = :ej570_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu570_u.id LEFT JOIN {groups_members} gm570_gm2 ON (gm570_gm2.userid = eu570_u.id AND gm570_gm2.groupid = :gm570_3420) WHERE 1 = 1 AND ej570_ue.status = :ej570_active AND ej570_e.status = :ej570_enabled AND ej570_ue.timestart < :ej570_now1 AND (ej570_ue.timeend = 0 OR ej570_ue.timeend > :ej570_now2) AND eu570_u.deleted = 0 AND eu570_u.id <> :eu570_guestid AND gm570_gm2.userid IS NOT NULL AND eu570_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu571_u.id FROM {user} eu571_u JOIN {user_enrolments} ej571_ue ON ej571_ue.userid = eu571_u.id JOIN {enrol} ej571_e ON (ej571_e.id = ej571_ue.enrolid AND ej571_e.courseid = :ej571_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu571_u.id LEFT JOIN {groups_members} gm571_gm2 ON (gm571_gm2.userid = eu571_u.id AND gm571_gm2.groupid = :gm571_3426) WHERE 1 = 1 AND ej571_ue.status = :ej571_active AND ej571_e.status = :ej571_enabled AND ej571_ue.timestart < :ej571_now1 AND (ej571_ue.timeend = 0 OR ej571_ue.timeend > :ej571_now2) AND eu571_u.deleted = 0 AND eu571_u.id <> :eu571_guestid AND gm571_gm2.userid IS NOT NULL AND eu571_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu572_u.id FROM {user} eu572_u JOIN {user_enrolments} ej572_ue ON ej572_ue.userid = eu572_u.id JOIN {enrol} ej572_e ON (ej572_e.id = ej572_ue.enrolid AND ej572_e.courseid = :ej572_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu572_u.id LEFT JOIN {groups_members} gm572_gm2 ON (gm572_gm2.userid = eu572_u.id AND gm572_gm2.groupid = :gm572_3432) WHERE 1 = 1 AND ej572_ue.status = :ej572_active AND ej572_e.status = :ej572_enabled AND ej572_ue.timestart < :ej572_now1 AND (ej572_ue.timeend = 0 OR ej572_ue.timeend > :ej572_now2) AND eu572_u.deleted = 0 AND eu572_u.id <> :eu572_guestid AND gm572_gm2.userid IS NOT NULL AND eu572_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu573_u.id FROM {user} eu573_u JOIN {user_enrolments} ej573_ue ON ej573_ue.userid = eu573_u.id JOIN {enrol} ej573_e ON (ej573_e.id = ej573_ue.enrolid AND ej573_e.courseid = :ej573_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu573_u.id LEFT JOIN {groups_members} gm573_gm2 ON (gm573_gm2.userid = eu573_u.id AND gm573_gm2.groupid = :gm573_3438) WHERE 1 = 1 AND ej573_ue.status = :ej573_active AND ej573_e.status = :ej573_enabled AND ej573_ue.timestart < :ej573_now1 AND (ej573_ue.timeend = 0 OR ej573_ue.timeend > :ej573_now2) AND eu573_u.deleted = 0 AND eu573_u.id <> :eu573_guestid AND gm573_gm2.userid IS NOT NULL AND eu573_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu574_u.id FROM {user} eu574_u JOIN {user_enrolments} ej574_ue ON ej574_ue.userid = eu574_u.id JOIN {enrol} ej574_e ON (ej574_e.id = ej574_ue.enrolid AND ej574_e.courseid = :ej574_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu574_u.id LEFT JOIN {groups_members} gm574_gm2 ON (gm574_gm2.userid = eu574_u.id AND gm574_gm2.groupid = :gm574_3444) WHERE 1 = 1 AND ej574_ue.status = :ej574_active AND ej574_e.status = :ej574_enabled AND ej574_ue.timestart < :ej574_now1 AND (ej574_ue.timeend = 0 OR ej574_ue.timeend > :ej574_now2) AND eu574_u.deleted = 0 AND eu574_u.id <> :eu574_guestid AND gm574_gm2.userid IS NOT NULL AND eu574_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu575_u.id FROM {user} eu575_u JOIN {user_enrolments} ej575_ue ON ej575_ue.userid = eu575_u.id JOIN {enrol} ej575_e ON (ej575_e.id = ej575_ue.enrolid AND ej575_e.courseid = :ej575_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu575_u.id LEFT JOIN {groups_members} gm575_gm2 ON (gm575_gm2.userid = eu575_u.id AND gm575_gm2.groupid = :gm575_3450) WHERE 1 = 1 AND ej575_ue.status = :ej575_active AND ej575_e.status = :ej575_enabled AND ej575_ue.timestart < :ej575_now1 AND (ej575_ue.timeend = 0 OR ej575_ue.timeend > :ej575_now2) AND eu575_u.deleted = 0 AND eu575_u.id <> :eu575_guestid AND gm575_gm2.userid IS NOT NULL AND eu575_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu576_u.id FROM {user} eu576_u JOIN {user_enrolments} ej576_ue ON ej576_ue.userid = eu576_u.id JOIN {enrol} ej576_e ON (ej576_e.id = ej576_ue.enrolid AND ej576_e.courseid = :ej576_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu576_u.id LEFT JOIN {groups_members} gm576_gm2 ON (gm576_gm2.userid = eu576_u.id AND gm576_gm2.groupid = :gm576_3456) WHERE 1 = 1 AND ej576_ue.status = :ej576_active AND ej576_e.status = :ej576_enabled AND ej576_ue.timestart < :ej576_now1 AND (ej576_ue.timeend = 0 OR ej576_ue.timeend > :ej576_now2) AND eu576_u.deleted = 0 AND eu576_u.id <> :eu576_guestid AND gm576_gm2.userid IS NOT NULL AND eu576_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu577_u.id FROM {user} eu577_u JOIN {user_enrolments} ej577_ue ON ej577_ue.userid = eu577_u.id JOIN {enrol} ej577_e ON (ej577_e.id = ej577_ue.enrolid AND ej577_e.courseid = :ej577_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu577_u.id LEFT JOIN {groups_members} gm577_gm2 ON (gm577_gm2.userid = eu577_u.id AND gm577_gm2.groupid = :gm577_3462) WHERE 1 = 1 AND ej577_ue.status = :ej577_active AND ej577_e.status = :ej577_enabled AND ej577_ue.timestart < :ej577_now1 AND (ej577_ue.timeend = 0 OR ej577_ue.timeend > :ej577_now2) AND eu577_u.deleted = 0 AND eu577_u.id <> :eu577_guestid AND gm577_gm2.userid IS NOT NULL AND eu577_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu578_u.id FROM {user} eu578_u JOIN {user_enrolments} ej578_ue ON ej578_ue.userid = eu578_u.id JOIN {enrol} ej578_e ON (ej578_e.id = ej578_ue.enrolid AND ej578_e.courseid = :ej578_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu578_u.id LEFT JOIN {groups_members} gm578_gm2 ON (gm578_gm2.userid = eu578_u.id AND gm578_gm2.groupid = :gm578_3468) WHERE 1 = 1 AND ej578_ue.status = :ej578_active AND ej578_e.status = :ej578_enabled AND ej578_ue.timestart < :ej578_now1 AND (ej578_ue.timeend = 0 OR ej578_ue.timeend > :ej578_now2) AND eu578_u.deleted = 0 AND eu578_u.id <> :eu578_guestid AND gm578_gm2.userid IS NOT NULL AND eu578_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu579_u.id FROM {user} eu579_u JOIN {user_enrolments} ej579_ue ON ej579_ue.userid = eu579_u.id JOIN {enrol} ej579_e ON (ej579_e.id = ej579_ue.enrolid AND ej579_e.courseid = :ej579_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu579_u.id LEFT JOIN {groups_members} gm579_gm2 ON (gm579_gm2.userid = eu579_u.id AND gm579_gm2.groupid = :gm579_3474) WHERE 1 = 1 AND ej579_ue.status = :ej579_active AND ej579_e.status = :ej579_enabled AND ej579_ue.timestart < :ej579_now1 AND (ej579_ue.timeend = 0 OR ej579_ue.timeend > :ej579_now2) AND eu579_u.deleted = 0 AND eu579_u.id <> :eu579_guestid AND gm579_gm2.userid IS NOT NULL AND eu579_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu580_u.id FROM {user} eu580_u JOIN {user_enrolments} ej580_ue ON ej580_ue.userid = eu580_u.id JOIN {enrol} ej580_e ON (ej580_e.id = ej580_ue.enrolid AND ej580_e.courseid = :ej580_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu580_u.id LEFT JOIN {groups_members} gm580_gm2 ON (gm580_gm2.userid = eu580_u.id AND gm580_gm2.groupid = :gm580_3480) WHERE 1 = 1 AND ej580_ue.status = :ej580_active AND ej580_e.status = :ej580_enabled AND ej580_ue.timestart < :ej580_now1 AND (ej580_ue.timeend = 0 OR ej580_ue.timeend > :ej580_now2) AND eu580_u.deleted = 0 AND eu580_u.id <> :eu580_guestid AND gm580_gm2.userid IS NOT NULL AND eu580_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu581_u.id FROM {user} eu581_u JOIN {user_enrolments} ej581_ue ON ej581_ue.userid = eu581_u.id JOIN {enrol} ej581_e ON (ej581_e.id = ej581_ue.enrolid AND ej581_e.courseid = :ej581_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu581_u.id LEFT JOIN {groups_members} gm581_gm2 ON (gm581_gm2.userid = eu581_u.id AND gm581_gm2.groupid = :gm581_3486) WHERE 1 = 1 AND ej581_ue.status = :ej581_active AND ej581_e.status = :ej581_enabled AND ej581_ue.timestart < :ej581_now1 AND (ej581_ue.timeend = 0 OR ej581_ue.timeend > :ej581_now2) AND eu581_u.deleted = 0 AND eu581_u.id <> :eu581_guestid AND gm581_gm2.userid IS NOT NULL AND eu581_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu582_u.id FROM {user} eu582_u JOIN {user_enrolments} ej582_ue ON ej582_ue.userid = eu582_u.id JOIN {enrol} ej582_e ON (ej582_e.id = ej582_ue.enrolid AND ej582_e.courseid = :ej582_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu582_u.id LEFT JOIN {groups_members} gm582_gm2 ON (gm582_gm2.userid = eu582_u.id AND gm582_gm2.groupid = :gm582_3492) WHERE 1 = 1 AND ej582_ue.status = :ej582_active AND ej582_e.status = :ej582_enabled AND ej582_ue.timestart < :ej582_now1 AND (ej582_ue.timeend = 0 OR ej582_ue.timeend > :ej582_now2) AND eu582_u.deleted = 0 AND eu582_u.id <> :eu582_guestid AND gm582_gm2.userid IS NOT NULL AND eu582_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu583_u.id FROM {user} eu583_u JOIN {user_enrolments} ej583_ue ON ej583_ue.userid = eu583_u.id JOIN {enrol} ej583_e ON (ej583_e.id = ej583_ue.enrolid AND ej583_e.courseid = :ej583_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu583_u.id LEFT JOIN {groups_members} gm583_gm2 ON (gm583_gm2.userid = eu583_u.id AND gm583_gm2.groupid = :gm583_3498) WHERE 1 = 1 AND ej583_ue.status = :ej583_active AND ej583_e.status = :ej583_enabled AND ej583_ue.timestart < :ej583_now1 AND (ej583_ue.timeend = 0 OR ej583_ue.timeend > :ej583_now2) AND eu583_u.deleted = 0 AND eu583_u.id <> :eu583_guestid AND gm583_gm2.userid IS NOT NULL AND eu583_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu584_u.id FROM {user} eu584_u JOIN {user_enrolments} ej584_ue ON ej584_ue.userid = eu584_u.id JOIN {enrol} ej584_e ON (ej584_e.id = ej584_ue.enrolid AND ej584_e.courseid = :ej584_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu584_u.id LEFT JOIN {groups_members} gm584_gm2 ON (gm584_gm2.userid = eu584_u.id AND gm584_gm2.groupid = :gm584_3504) WHERE 1 = 1 AND ej584_ue.status = :ej584_active AND ej584_e.status = :ej584_enabled AND ej584_ue.timestart < :ej584_now1 AND (ej584_ue.timeend = 0 OR ej584_ue.timeend > :ej584_now2) AND eu584_u.deleted = 0 AND eu584_u.id <> :eu584_guestid AND gm584_gm2.userid IS NOT NULL AND eu584_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu585_u.id FROM {user} eu585_u JOIN {user_enrolments} ej585_ue ON ej585_ue.userid = eu585_u.id JOIN {enrol} ej585_e ON (ej585_e.id = ej585_ue.enrolid AND ej585_e.courseid = :ej585_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu585_u.id LEFT JOIN {groups_members} gm585_gm2 ON (gm585_gm2.userid = eu585_u.id AND gm585_gm2.groupid = :gm585_3510) WHERE 1 = 1 AND ej585_ue.status = :ej585_active AND ej585_e.status = :ej585_enabled AND ej585_ue.timestart < :ej585_now1 AND (ej585_ue.timeend = 0 OR ej585_ue.timeend > :ej585_now2) AND eu585_u.deleted = 0 AND eu585_u.id <> :eu585_guestid AND gm585_gm2.userid IS NOT NULL AND eu585_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu586_u.id FROM {user} eu586_u JOIN {user_enrolments} ej586_ue ON ej586_ue.userid = eu586_u.id JOIN {enrol} ej586_e ON (ej586_e.id = ej586_ue.enrolid AND ej586_e.courseid = :ej586_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu586_u.id LEFT JOIN {groups_members} gm586_gm2 ON (gm586_gm2.userid = eu586_u.id AND gm586_gm2.groupid = :gm586_3516) WHERE 1 = 1 AND ej586_ue.status = :ej586_active AND ej586_e.status = :ej586_enabled AND ej586_ue.timestart < :ej586_now1 AND (ej586_ue.timeend = 0 OR ej586_ue.timeend > :ej586_now2) AND eu586_u.deleted = 0 AND eu586_u.id <> :eu586_guestid AND gm586_gm2.userid IS NOT NULL AND eu586_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu587_u.id FROM {user} eu587_u JOIN {user_enrolments} ej587_ue ON ej587_ue.userid = eu587_u.id JOIN {enrol} ej587_e ON (ej587_e.id = ej587_ue.enrolid AND ej587_e.courseid = :ej587_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu587_u.id LEFT JOIN {groups_members} gm587_gm2 ON (gm587_gm2.userid = eu587_u.id AND gm587_gm2.groupid = :gm587_3522) WHERE 1 = 1 AND ej587_ue.status = :ej587_active AND ej587_e.status = :ej587_enabled AND ej587_ue.timestart < :ej587_now1 AND (ej587_ue.timeend = 0 OR ej587_ue.timeend > :ej587_now2) AND eu587_u.deleted = 0 AND eu587_u.id <> :eu587_guestid AND gm587_gm2.userid IS NOT NULL AND eu587_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu588_u.id FROM {user} eu588_u JOIN {user_enrolments} ej588_ue ON ej588_ue.userid = eu588_u.id JOIN {enrol} ej588_e ON (ej588_e.id = ej588_ue.enrolid AND ej588_e.courseid = :ej588_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu588_u.id LEFT JOIN {groups_members} gm588_gm2 ON (gm588_gm2.userid = eu588_u.id AND gm588_gm2.groupid = :gm588_3528) WHERE 1 = 1 AND ej588_ue.status = :ej588_active AND ej588_e.status = :ej588_enabled AND ej588_ue.timestart < :ej588_now1 AND (ej588_ue.timeend = 0 OR ej588_ue.timeend > :ej588_now2) AND eu588_u.deleted = 0 AND eu588_u.id <> :eu588_guestid AND gm588_gm2.userid IS NOT NULL AND eu588_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu589_u.id FROM {user} eu589_u JOIN {user_enrolments} ej589_ue ON ej589_ue.userid = eu589_u.id JOIN {enrol} ej589_e ON (ej589_e.id = ej589_ue.enrolid AND ej589_e.courseid = :ej589_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu589_u.id LEFT JOIN {groups_members} gm589_gm2 ON (gm589_gm2.userid = eu589_u.id AND gm589_gm2.groupid = :gm589_3534) WHERE 1 = 1 AND ej589_ue.status = :ej589_active AND ej589_e.status = :ej589_enabled AND ej589_ue.timestart < :ej589_now1 AND (ej589_ue.timeend = 0 OR ej589_ue.timeend > :ej589_now2) AND eu589_u.deleted = 0 AND eu589_u.id <> :eu589_guestid AND gm589_gm2.userid IS NOT NULL AND eu589_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu590_u.id FROM {user} eu590_u JOIN {user_enrolments} ej590_ue ON ej590_ue.userid = eu590_u.id JOIN {enrol} ej590_e ON (ej590_e.id = ej590_ue.enrolid AND ej590_e.courseid = :ej590_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu590_u.id LEFT JOIN {groups_members} gm590_gm2 ON (gm590_gm2.userid = eu590_u.id AND gm590_gm2.groupid = :gm590_3540) WHERE 1 = 1 AND ej590_ue.status = :ej590_active AND ej590_e.status = :ej590_enabled AND ej590_ue.timestart < :ej590_now1 AND (ej590_ue.timeend = 0 OR ej590_ue.timeend > :ej590_now2) AND eu590_u.deleted = 0 AND eu590_u.id <> :eu590_guestid AND gm590_gm2.userid IS NOT NULL AND eu590_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu591_u.id FROM {user} eu591_u JOIN {user_enrolments} ej591_ue ON ej591_ue.userid = eu591_u.id JOIN {enrol} ej591_e ON (ej591_e.id = ej591_ue.enrolid AND ej591_e.courseid = :ej591_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu591_u.id LEFT JOIN {groups_members} gm591_gm2 ON (gm591_gm2.userid = eu591_u.id AND gm591_gm2.groupid = :gm591_3546) WHERE 1 = 1 AND ej591_ue.status = :ej591_active AND ej591_e.status = :ej591_enabled AND ej591_ue.timestart < :ej591_now1 AND (ej591_ue.timeend = 0 OR ej591_ue.timeend > :ej591_now2) AND eu591_u.deleted = 0 AND eu591_u.id <> :eu591_guestid AND gm591_gm2.userid IS NOT NULL AND eu591_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu592_u.id FROM {user} eu592_u JOIN {user_enrolments} ej592_ue ON ej592_ue.userid = eu592_u.id JOIN {enrol} ej592_e ON (ej592_e.id = ej592_ue.enrolid AND ej592_e.courseid = :ej592_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu592_u.id LEFT JOIN {groups_members} gm592_gm2 ON (gm592_gm2.userid = eu592_u.id AND gm592_gm2.groupid = :gm592_3552) WHERE 1 = 1 AND ej592_ue.status = :ej592_active AND ej592_e.status = :ej592_enabled AND ej592_ue.timestart < :ej592_now1 AND (ej592_ue.timeend = 0 OR ej592_ue.timeend > :ej592_now2) AND eu592_u.deleted = 0 AND eu592_u.id <> :eu592_guestid AND gm592_gm2.userid IS NOT NULL AND eu592_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu593_u.id FROM {user} eu593_u JOIN {user_enrolments} ej593_ue ON ej593_ue.userid = eu593_u.id JOIN {enrol} ej593_e ON (ej593_e.id = ej593_ue.enrolid AND ej593_e.courseid = :ej593_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu593_u.id LEFT JOIN {groups_members} gm593_gm2 ON (gm593_gm2.userid = eu593_u.id AND gm593_gm2.groupid = :gm593_3558) WHERE 1 = 1 AND ej593_ue.status = :ej593_active AND ej593_e.status = :ej593_enabled AND ej593_ue.timestart < :ej593_now1 AND (ej593_ue.timeend = 0 OR ej593_ue.timeend > :ej593_now2) AND eu593_u.deleted = 0 AND eu593_u.id <> :eu593_guestid AND gm593_gm2.userid IS NOT NULL AND eu593_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu594_u.id FROM {user} eu594_u JOIN {user_enrolments} ej594_ue ON ej594_ue.userid = eu594_u.id JOIN {enrol} ej594_e ON (ej594_e.id = ej594_ue.enrolid AND ej594_e.courseid = :ej594_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu594_u.id LEFT JOIN {groups_members} gm594_gm2 ON (gm594_gm2.userid = eu594_u.id AND gm594_gm2.groupid = :gm594_3564) WHERE 1 = 1 AND ej594_ue.status = :ej594_active AND ej594_e.status = :ej594_enabled AND ej594_ue.timestart < :ej594_now1 AND (ej594_ue.timeend = 0 OR ej594_ue.timeend > :ej594_now2) AND eu594_u.deleted = 0 AND eu594_u.id <> :eu594_guestid AND gm594_gm2.userid IS NOT NULL AND eu594_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu595_u.id FROM {user} eu595_u JOIN {user_enrolments} ej595_ue ON ej595_ue.userid = eu595_u.id JOIN {enrol} ej595_e ON (ej595_e.id = ej595_ue.enrolid AND ej595_e.courseid = :ej595_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu595_u.id LEFT JOIN {groups_members} gm595_gm2 ON (gm595_gm2.userid = eu595_u.id AND gm595_gm2.groupid = :gm595_3570) WHERE 1 = 1 AND ej595_ue.status = :ej595_active AND ej595_e.status = :ej595_enabled AND ej595_ue.timestart < :ej595_now1 AND (ej595_ue.timeend = 0 OR ej595_ue.timeend > :ej595_now2) AND eu595_u.deleted = 0 AND eu595_u.id <> :eu595_guestid AND gm595_gm2.userid IS NOT NULL AND eu595_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu596_u.id FROM {user} eu596_u JOIN {user_enrolments} ej596_ue ON ej596_ue.userid = eu596_u.id JOIN {enrol} ej596_e ON (ej596_e.id = ej596_ue.enrolid AND ej596_e.courseid = :ej596_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu596_u.id LEFT JOIN {groups_members} gm596_gm2 ON (gm596_gm2.userid = eu596_u.id AND gm596_gm2.groupid = :gm596_3576) WHERE 1 = 1 AND ej596_ue.status = :ej596_active AND ej596_e.status = :ej596_enabled AND ej596_ue.timestart < :ej596_now1 AND (ej596_ue.timeend = 0 OR ej596_ue.timeend > :ej596_now2) AND eu596_u.deleted = 0 AND eu596_u.id <> :eu596_guestid AND gm596_gm2.userid IS NOT NULL AND eu596_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu597_u.id FROM {user} eu597_u JOIN {user_enrolments} ej597_ue ON ej597_ue.userid = eu597_u.id JOIN {enrol} ej597_e ON (ej597_e.id = ej597_ue.enrolid AND ej597_e.courseid = :ej597_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu597_u.id LEFT JOIN {groups_members} gm597_gm2 ON (gm597_gm2.userid = eu597_u.id AND gm597_gm2.groupid = :gm597_3582) WHERE 1 = 1 AND ej597_ue.status = :ej597_active AND ej597_e.status = :ej597_enabled AND ej597_ue.timestart < :ej597_now1 AND (ej597_ue.timeend = 0 OR ej597_ue.timeend > :ej597_now2) AND eu597_u.deleted = 0 AND eu597_u.id <> :eu597_guestid AND gm597_gm2.userid IS NOT NULL AND eu597_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu598_u.id FROM {user} eu598_u JOIN {user_enrolments} ej598_ue ON ej598_ue.userid = eu598_u.id JOIN {enrol} ej598_e ON (ej598_e.id = ej598_ue.enrolid AND ej598_e.courseid = :ej598_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu598_u.id LEFT JOIN {groups_members} gm598_gm2 ON (gm598_gm2.userid = eu598_u.id AND gm598_gm2.groupid = :gm598_3588) WHERE 1 = 1 AND ej598_ue.status = :ej598_active AND ej598_e.status = :ej598_enabled AND ej598_ue.timestart < :ej598_now1 AND (ej598_ue.timeend = 0 OR ej598_ue.timeend > :ej598_now2) AND eu598_u.deleted = 0 AND eu598_u.id <> :eu598_guestid AND gm598_gm2.userid IS NOT NULL AND eu598_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu599_u.id FROM {user} eu599_u JOIN {user_enrolments} ej599_ue ON ej599_ue.userid = eu599_u.id JOIN {enrol} ej599_e ON (ej599_e.id = ej599_ue.enrolid AND ej599_e.courseid = :ej599_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu599_u.id LEFT JOIN {groups_members} gm599_gm2 ON (gm599_gm2.userid = eu599_u.id AND gm599_gm2.groupid = :gm599_3594) WHERE 1 = 1 AND ej599_ue.status = :ej599_active AND ej599_e.status = :ej599_enabled AND ej599_ue.timestart < :ej599_now1 AND (ej599_ue.timeend = 0 OR ej599_ue.timeend > :ej599_now2) AND eu599_u.deleted = 0 AND eu599_u.id <> :eu599_guestid AND gm599_gm2.userid IS NOT NULL AND eu599_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu600_u.id FROM {user} eu600_u JOIN {user_enrolments} ej600_ue ON ej600_ue.userid = eu600_u.id JOIN {enrol} ej600_e ON (ej600_e.id = ej600_ue.enrolid AND ej600_e.courseid = :ej600_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu600_u.id LEFT JOIN {groups_members} gm600_gm2 ON (gm600_gm2.userid = eu600_u.id AND gm600_gm2.groupid = :gm600_3600) WHERE 1 = 1 AND ej600_ue.status = :ej600_active AND ej600_e.status = :ej600_enabled AND ej600_ue.timestart < :ej600_now1 AND (ej600_ue.timeend = 0 OR ej600_ue.timeend > :ej600_now2) AND eu600_u.deleted = 0 AND eu600_u.id <> :eu600_guestid AND gm600_gm2.userid IS NOT NULL AND eu600_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu601_u.id FROM {user} eu601_u JOIN {user_enrolments} ej601_ue ON ej601_ue.userid = eu601_u.id JOIN {enrol} ej601_e ON (ej601_e.id = ej601_ue.enrolid AND ej601_e.courseid = :ej601_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu601_u.id LEFT JOIN {groups_members} gm601_gm2 ON (gm601_gm2.userid = eu601_u.id AND gm601_gm2.groupid = :gm601_3606) WHERE 1 = 1 AND ej601_ue.status = :ej601_active AND ej601_e.status = :ej601_enabled AND ej601_ue.timestart < :ej601_now1 AND (ej601_ue.timeend = 0 OR ej601_ue.timeend > :ej601_now2) AND eu601_u.deleted = 0 AND eu601_u.id <> :eu601_guestid AND gm601_gm2.userid IS NOT NULL AND eu601_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu602_u.id FROM {user} eu602_u JOIN {user_enrolments} ej602_ue ON ej602_ue.userid = eu602_u.id JOIN {enrol} ej602_e ON (ej602_e.id = ej602_ue.enrolid AND ej602_e.courseid = :ej602_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu602_u.id LEFT JOIN {groups_members} gm602_gm2 ON (gm602_gm2.userid = eu602_u.id AND gm602_gm2.groupid = :gm602_3612) WHERE 1 = 1 AND ej602_ue.status = :ej602_active AND ej602_e.status = :ej602_enabled AND ej602_ue.timestart < :ej602_now1 AND (ej602_ue.timeend = 0 OR ej602_ue.timeend > :ej602_now2) AND eu602_u.deleted = 0 AND eu602_u.id <> :eu602_guestid AND gm602_gm2.userid IS NOT NULL AND eu602_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu603_u.id FROM {user} eu603_u JOIN {user_enrolments} ej603_ue ON ej603_ue.userid = eu603_u.id JOIN {enrol} ej603_e ON (ej603_e.id = ej603_ue.enrolid AND ej603_e.courseid = :ej603_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu603_u.id LEFT JOIN {groups_members} gm603_gm2 ON (gm603_gm2.userid = eu603_u.id AND gm603_gm2.groupid = :gm603_3618) WHERE 1 = 1 AND ej603_ue.status = :ej603_active AND ej603_e.status = :ej603_enabled AND ej603_ue.timestart < :ej603_now1 AND (ej603_ue.timeend = 0 OR ej603_ue.timeend > :ej603_now2) AND eu603_u.deleted = 0 AND eu603_u.id <> :eu603_guestid AND gm603_gm2.userid IS NOT NULL AND eu603_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu604_u.id FROM {user} eu604_u JOIN {user_enrolments} ej604_ue ON ej604_ue.userid = eu604_u.id JOIN {enrol} ej604_e ON (ej604_e.id = ej604_ue.enrolid AND ej604_e.courseid = :ej604_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu604_u.id LEFT JOIN {groups_members} gm604_gm2 ON (gm604_gm2.userid = eu604_u.id AND gm604_gm2.groupid = :gm604_3624) WHERE 1 = 1 AND ej604_ue.status = :ej604_active AND ej604_e.status = :ej604_enabled AND ej604_ue.timestart < :ej604_now1 AND (ej604_ue.timeend = 0 OR ej604_ue.timeend > :ej604_now2) AND eu604_u.deleted = 0 AND eu604_u.id <> :eu604_guestid AND gm604_gm2.userid IS NOT NULL AND eu604_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu605_u.id FROM {user} eu605_u JOIN {user_enrolments} ej605_ue ON ej605_ue.userid = eu605_u.id JOIN {enrol} ej605_e ON (ej605_e.id = ej605_ue.enrolid AND ej605_e.courseid = :ej605_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu605_u.id LEFT JOIN {groups_members} gm605_gm2 ON (gm605_gm2.userid = eu605_u.id AND gm605_gm2.groupid = :gm605_3630) WHERE 1 = 1 AND ej605_ue.status = :ej605_active AND ej605_e.status = :ej605_enabled AND ej605_ue.timestart < :ej605_now1 AND (ej605_ue.timeend = 0 OR ej605_ue.timeend > :ej605_now2) AND eu605_u.deleted = 0 AND eu605_u.id <> :eu605_guestid AND gm605_gm2.userid IS NOT NULL AND eu605_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu606_u.id FROM {user} eu606_u JOIN {user_enrolments} ej606_ue ON ej606_ue.userid = eu606_u.id JOIN {enrol} ej606_e ON (ej606_e.id = ej606_ue.enrolid AND ej606_e.courseid = :ej606_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu606_u.id LEFT JOIN {groups_members} gm606_gm2 ON (gm606_gm2.userid = eu606_u.id AND gm606_gm2.groupid = :gm606_3636) WHERE 1 = 1 AND ej606_ue.status = :ej606_active AND ej606_e.status = :ej606_enabled AND ej606_ue.timestart < :ej606_now1 AND (ej606_ue.timeend = 0 OR ej606_ue.timeend > :ej606_now2) AND eu606_u.deleted = 0 AND eu606_u.id <> :eu606_guestid AND gm606_gm2.userid IS NOT NULL AND eu606_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu607_u.id FROM {user} eu607_u JOIN {user_enrolments} ej607_ue ON ej607_ue.userid = eu607_u.id JOIN {enrol} ej607_e ON (ej607_e.id = ej607_ue.enrolid AND ej607_e.courseid = :ej607_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu607_u.id LEFT JOIN {groups_members} gm607_gm2 ON (gm607_gm2.userid = eu607_u.id AND gm607_gm2.groupid = :gm607_3642) WHERE 1 = 1 AND ej607_ue.status = :ej607_active AND ej607_e.status = :ej607_enabled AND ej607_ue.timestart < :ej607_now1 AND (ej607_ue.timeend = 0 OR ej607_ue.timeend > :ej607_now2) AND eu607_u.deleted = 0 AND eu607_u.id <> :eu607_guestid AND gm607_gm2.userid IS NOT NULL AND eu607_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu608_u.id FROM {user} eu608_u JOIN {user_enrolments} ej608_ue ON ej608_ue.userid = eu608_u.id JOIN {enrol} ej608_e ON (ej608_e.id = ej608_ue.enrolid AND ej608_e.courseid = :ej608_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu608_u.id LEFT JOIN {groups_members} gm608_gm2 ON (gm608_gm2.userid = eu608_u.id AND gm608_gm2.groupid = :gm608_3648) WHERE 1 = 1 AND ej608_ue.status = :ej608_active AND ej608_e.status = :ej608_enabled AND ej608_ue.timestart < :ej608_now1 AND (ej608_ue.timeend = 0 OR ej608_ue.timeend > :ej608_now2) AND eu608_u.deleted = 0 AND eu608_u.id <> :eu608_guestid AND gm608_gm2.userid IS NOT NULL AND eu608_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu609_u.id FROM {user} eu609_u JOIN {user_enrolments} ej609_ue ON ej609_ue.userid = eu609_u.id JOIN {enrol} ej609_e ON (ej609_e.id = ej609_ue.enrolid AND ej609_e.courseid = :ej609_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu609_u.id LEFT JOIN {groups_members} gm609_gm2 ON (gm609_gm2.userid = eu609_u.id AND gm609_gm2.groupid = :gm609_3654) WHERE 1 = 1 AND ej609_ue.status = :ej609_active AND ej609_e.status = :ej609_enabled AND ej609_ue.timestart < :ej609_now1 AND (ej609_ue.timeend = 0 OR ej609_ue.timeend > :ej609_now2) AND eu609_u.deleted = 0 AND eu609_u.id <> :eu609_guestid AND gm609_gm2.userid IS NOT NULL AND eu609_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu610_u.id FROM {user} eu610_u JOIN {user_enrolments} ej610_ue ON ej610_ue.userid = eu610_u.id JOIN {enrol} ej610_e ON (ej610_e.id = ej610_ue.enrolid AND ej610_e.courseid = :ej610_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu610_u.id LEFT JOIN {groups_members} gm610_gm2 ON (gm610_gm2.userid = eu610_u.id AND gm610_gm2.groupid = :gm610_3660) WHERE 1 = 1 AND ej610_ue.status = :ej610_active AND ej610_e.status = :ej610_enabled AND ej610_ue.timestart < :ej610_now1 AND (ej610_ue.timeend = 0 OR ej610_ue.timeend > :ej610_now2) AND eu610_u.deleted = 0 AND eu610_u.id <> :eu610_guestid AND gm610_gm2.userid IS NOT NULL AND eu610_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu611_u.id FROM {user} eu611_u JOIN {user_enrolments} ej611_ue ON ej611_ue.userid = eu611_u.id JOIN {enrol} ej611_e ON (ej611_e.id = ej611_ue.enrolid AND ej611_e.courseid = :ej611_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu611_u.id LEFT JOIN {groups_members} gm611_gm2 ON (gm611_gm2.userid = eu611_u.id AND gm611_gm2.groupid = :gm611_3666) WHERE 1 = 1 AND ej611_ue.status = :ej611_active AND ej611_e.status = :ej611_enabled AND ej611_ue.timestart < :ej611_now1 AND (ej611_ue.timeend = 0 OR ej611_ue.timeend > :ej611_now2) AND eu611_u.deleted = 0 AND eu611_u.id <> :eu611_guestid AND gm611_gm2.userid IS NOT NULL AND eu611_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu612_u.id FROM {user} eu612_u JOIN {user_enrolments} ej612_ue ON ej612_ue.userid = eu612_u.id JOIN {enrol} ej612_e ON (ej612_e.id = ej612_ue.enrolid AND ej612_e.courseid = :ej612_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu612_u.id LEFT JOIN {groups_members} gm612_gm2 ON (gm612_gm2.userid = eu612_u.id AND gm612_gm2.groupid = :gm612_3672) WHERE 1 = 1 AND ej612_ue.status = :ej612_active AND ej612_e.status = :ej612_enabled AND ej612_ue.timestart < :ej612_now1 AND (ej612_ue.timeend = 0 OR ej612_ue.timeend > :ej612_now2) AND eu612_u.deleted = 0 AND eu612_u.id <> :eu612_guestid AND gm612_gm2.userid IS NOT NULL AND eu612_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu613_u.id FROM {user} eu613_u JOIN {user_enrolments} ej613_ue ON ej613_ue.userid = eu613_u.id JOIN {enrol} ej613_e ON (ej613_e.id = ej613_ue.enrolid AND ej613_e.courseid = :ej613_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu613_u.id LEFT JOIN {groups_members} gm613_gm2 ON (gm613_gm2.userid = eu613_u.id AND gm613_gm2.groupid = :gm613_3678) WHERE 1 = 1 AND ej613_ue.status = :ej613_active AND ej613_e.status = :ej613_enabled AND ej613_ue.timestart < :ej613_now1 AND (ej613_ue.timeend = 0 OR ej613_ue.timeend > :ej613_now2) AND eu613_u.deleted = 0 AND eu613_u.id <> :eu613_guestid AND gm613_gm2.userid IS NOT NULL AND eu613_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu614_u.id FROM {user} eu614_u JOIN {user_enrolments} ej614_ue ON ej614_ue.userid = eu614_u.id JOIN {enrol} ej614_e ON (ej614_e.id = ej614_ue.enrolid AND ej614_e.courseid = :ej614_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu614_u.id LEFT JOIN {groups_members} gm614_gm2 ON (gm614_gm2.userid = eu614_u.id AND gm614_gm2.groupid = :gm614_3684) WHERE 1 = 1 AND ej614_ue.status = :ej614_active AND ej614_e.status = :ej614_enabled AND ej614_ue.timestart < :ej614_now1 AND (ej614_ue.timeend = 0 OR ej614_ue.timeend > :ej614_now2) AND eu614_u.deleted = 0 AND eu614_u.id <> :eu614_guestid AND gm614_gm2.userid IS NOT NULL AND eu614_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu615_u.id FROM {user} eu615_u JOIN {user_enrolments} ej615_ue ON ej615_ue.userid = eu615_u.id JOIN {enrol} ej615_e ON (ej615_e.id = ej615_ue.enrolid AND ej615_e.courseid = :ej615_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu615_u.id LEFT JOIN {groups_members} gm615_gm2 ON (gm615_gm2.userid = eu615_u.id AND gm615_gm2.groupid = :gm615_3690) WHERE 1 = 1 AND ej615_ue.status = :ej615_active AND ej615_e.status = :ej615_enabled AND ej615_ue.timestart < :ej615_now1 AND (ej615_ue.timeend = 0 OR ej615_ue.timeend > :ej615_now2) AND eu615_u.deleted = 0 AND eu615_u.id <> :eu615_guestid AND gm615_gm2.userid IS NOT NULL AND eu615_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu616_u.id FROM {user} eu616_u JOIN {user_enrolments} ej616_ue ON ej616_ue.userid = eu616_u.id JOIN {enrol} ej616_e ON (ej616_e.id = ej616_ue.enrolid AND ej616_e.courseid = :ej616_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu616_u.id LEFT JOIN {groups_members} gm616_gm2 ON (gm616_gm2.userid = eu616_u.id AND gm616_gm2.groupid = :gm616_3696) WHERE 1 = 1 AND ej616_ue.status = :ej616_active AND ej616_e.status = :ej616_enabled AND ej616_ue.timestart < :ej616_now1 AND (ej616_ue.timeend = 0 OR ej616_ue.timeend > :ej616_now2) AND eu616_u.deleted = 0 AND eu616_u.id <> :eu616_guestid AND gm616_gm2.userid IS NOT NULL AND eu616_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu617_u.id FROM {user} eu617_u JOIN {user_enrolments} ej617_ue ON ej617_ue.userid = eu617_u.id JOIN {enrol} ej617_e ON (ej617_e.id = ej617_ue.enrolid AND ej617_e.courseid = :ej617_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu617_u.id LEFT JOIN {groups_members} gm617_gm2 ON (gm617_gm2.userid = eu617_u.id AND gm617_gm2.groupid = :gm617_3702) WHERE 1 = 1 AND ej617_ue.status = :ej617_active AND ej617_e.status = :ej617_enabled AND ej617_ue.timestart < :ej617_now1 AND (ej617_ue.timeend = 0 OR ej617_ue.timeend > :ej617_now2) AND eu617_u.deleted = 0 AND eu617_u.id <> :eu617_guestid AND gm617_gm2.userid IS NOT NULL AND eu617_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu618_u.id FROM {user} eu618_u JOIN {user_enrolments} ej618_ue ON ej618_ue.userid = eu618_u.id JOIN {enrol} ej618_e ON (ej618_e.id = ej618_ue.enrolid AND ej618_e.courseid = :ej618_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu618_u.id LEFT JOIN {groups_members} gm618_gm2 ON (gm618_gm2.userid = eu618_u.id AND gm618_gm2.groupid = :gm618_3708) WHERE 1 = 1 AND ej618_ue.status = :ej618_active AND ej618_e.status = :ej618_enabled AND ej618_ue.timestart < :ej618_now1 AND (ej618_ue.timeend = 0 OR ej618_ue.timeend > :ej618_now2) AND eu618_u.deleted = 0 AND eu618_u.id <> :eu618_guestid AND gm618_gm2.userid IS NOT NULL AND eu618_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu619_u.id FROM {user} eu619_u JOIN {user_enrolments} ej619_ue ON ej619_ue.userid = eu619_u.id JOIN {enrol} ej619_e ON (ej619_e.id = ej619_ue.enrolid AND ej619_e.courseid = :ej619_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu619_u.id LEFT JOIN {groups_members} gm619_gm2 ON (gm619_gm2.userid = eu619_u.id AND gm619_gm2.groupid = :gm619_3714) WHERE 1 = 1 AND ej619_ue.status = :ej619_active AND ej619_e.status = :ej619_enabled AND ej619_ue.timestart < :ej619_now1 AND (ej619_ue.timeend = 0 OR ej619_ue.timeend > :ej619_now2) AND eu619_u.deleted = 0 AND eu619_u.id <> :eu619_guestid AND gm619_gm2.userid IS NOT NULL AND eu619_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu620_u.id FROM {user} eu620_u JOIN {user_enrolments} ej620_ue ON ej620_ue.userid = eu620_u.id JOIN {enrol} ej620_e ON (ej620_e.id = ej620_ue.enrolid AND ej620_e.courseid = :ej620_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu620_u.id LEFT JOIN {groups_members} gm620_gm2 ON (gm620_gm2.userid = eu620_u.id AND gm620_gm2.groupid = :gm620_3720) WHERE 1 = 1 AND ej620_ue.status = :ej620_active AND ej620_e.status = :ej620_enabled AND ej620_ue.timestart < :ej620_now1 AND (ej620_ue.timeend = 0 OR ej620_ue.timeend > :ej620_now2) AND eu620_u.deleted = 0 AND eu620_u.id <> :eu620_guestid AND gm620_gm2.userid IS NOT NULL AND eu620_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu621_u.id FROM {user} eu621_u JOIN {user_enrolments} ej621_ue ON ej621_ue.userid = eu621_u.id JOIN {enrol} ej621_e ON (ej621_e.id = ej621_ue.enrolid AND ej621_e.courseid = :ej621_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu621_u.id LEFT JOIN {groups_members} gm621_gm2 ON (gm621_gm2.userid = eu621_u.id AND gm621_gm2.groupid = :gm621_3726) WHERE 1 = 1 AND ej621_ue.status = :ej621_active AND ej621_e.status = :ej621_enabled AND ej621_ue.timestart < :ej621_now1 AND (ej621_ue.timeend = 0 OR ej621_ue.timeend > :ej621_now2) AND eu621_u.deleted = 0 AND eu621_u.id <> :eu621_guestid AND gm621_gm2.userid IS NOT NULL AND eu621_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu622_u.id FROM {user} eu622_u JOIN {user_enrolments} ej622_ue ON ej622_ue.userid = eu622_u.id JOIN {enrol} ej622_e ON (ej622_e.id = ej622_ue.enrolid AND ej622_e.courseid = :ej622_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu622_u.id LEFT JOIN {groups_members} gm622_gm2 ON (gm622_gm2.userid = eu622_u.id AND gm622_gm2.groupid = :gm622_3732) WHERE 1 = 1 AND ej622_ue.status = :ej622_active AND ej622_e.status = :ej622_enabled AND ej622_ue.timestart < :ej622_now1 AND (ej622_ue.timeend = 0 OR ej622_ue.timeend > :ej622_now2) AND eu622_u.deleted = 0 AND eu622_u.id <> :eu622_guestid AND gm622_gm2.userid IS NOT NULL AND eu622_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu623_u.id FROM {user} eu623_u JOIN {user_enrolments} ej623_ue ON ej623_ue.userid = eu623_u.id JOIN {enrol} ej623_e ON (ej623_e.id = ej623_ue.enrolid AND ej623_e.courseid = :ej623_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu623_u.id LEFT JOIN {groups_members} gm623_gm2 ON (gm623_gm2.userid = eu623_u.id AND gm623_gm2.groupid = :gm623_3738) WHERE 1 = 1 AND ej623_ue.status = :ej623_active AND ej623_e.status = :ej623_enabled AND ej623_ue.timestart < :ej623_now1 AND (ej623_ue.timeend = 0 OR ej623_ue.timeend > :ej623_now2) AND eu623_u.deleted = 0 AND eu623_u.id <> :eu623_guestid AND gm623_gm2.userid IS NOT NULL AND eu623_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu624_u.id FROM {user} eu624_u JOIN {user_enrolments} ej624_ue ON ej624_ue.userid = eu624_u.id JOIN {enrol} ej624_e ON (ej624_e.id = ej624_ue.enrolid AND ej624_e.courseid = :ej624_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu624_u.id LEFT JOIN {groups_members} gm624_gm2 ON (gm624_gm2.userid = eu624_u.id AND gm624_gm2.groupid = :gm624_3744) WHERE 1 = 1 AND ej624_ue.status = :ej624_active AND ej624_e.status = :ej624_enabled AND ej624_ue.timestart < :ej624_now1 AND (ej624_ue.timeend = 0 OR ej624_ue.timeend > :ej624_now2) AND eu624_u.deleted = 0 AND eu624_u.id <> :eu624_guestid AND gm624_gm2.userid IS NOT NULL AND eu624_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu625_u.id FROM {user} eu625_u JOIN {user_enrolments} ej625_ue ON ej625_ue.userid = eu625_u.id JOIN {enrol} ej625_e ON (ej625_e.id = ej625_ue.enrolid AND ej625_e.courseid = :ej625_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu625_u.id LEFT JOIN {groups_members} gm625_gm2 ON (gm625_gm2.userid = eu625_u.id AND gm625_gm2.groupid = :gm625_3750) WHERE 1 = 1 AND ej625_ue.status = :ej625_active AND ej625_e.status = :ej625_enabled AND ej625_ue.timestart < :ej625_now1 AND (ej625_ue.timeend = 0 OR ej625_ue.timeend > :ej625_now2) AND eu625_u.deleted = 0 AND eu625_u.id <> :eu625_guestid AND gm625_gm2.userid IS NOT NULL AND eu625_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu626_u.id FROM {user} eu626_u JOIN {user_enrolments} ej626_ue ON ej626_ue.userid = eu626_u.id JOIN {enrol} ej626_e ON (ej626_e.id = ej626_ue.enrolid AND ej626_e.courseid = :ej626_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu626_u.id LEFT JOIN {groups_members} gm626_gm2 ON (gm626_gm2.userid = eu626_u.id AND gm626_gm2.groupid = :gm626_3756) WHERE 1 = 1 AND ej626_ue.status = :ej626_active AND ej626_e.status = :ej626_enabled AND ej626_ue.timestart < :ej626_now1 AND (ej626_ue.timeend = 0 OR ej626_ue.timeend > :ej626_now2) AND eu626_u.deleted = 0 AND eu626_u.id <> :eu626_guestid AND gm626_gm2.userid IS NOT NULL AND eu626_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu627_u.id FROM {user} eu627_u JOIN {user_enrolments} ej627_ue ON ej627_ue.userid = eu627_u.id JOIN {enrol} ej627_e ON (ej627_e.id = ej627_ue.enrolid AND ej627_e.courseid = :ej627_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu627_u.id LEFT JOIN {groups_members} gm627_gm2 ON (gm627_gm2.userid = eu627_u.id AND gm627_gm2.groupid = :gm627_3762) WHERE 1 = 1 AND ej627_ue.status = :ej627_active AND ej627_e.status = :ej627_enabled AND ej627_ue.timestart < :ej627_now1 AND (ej627_ue.timeend = 0 OR ej627_ue.timeend > :ej627_now2) AND eu627_u.deleted = 0 AND eu627_u.id <> :eu627_guestid AND gm627_gm2.userid IS NOT NULL AND eu627_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu628_u.id FROM {user} eu628_u JOIN {user_enrolments} ej628_ue ON ej628_ue.userid = eu628_u.id JOIN {enrol} ej628_e ON (ej628_e.id = ej628_ue.enrolid AND ej628_e.courseid = :ej628_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu628_u.id LEFT JOIN {groups_members} gm628_gm2 ON (gm628_gm2.userid = eu628_u.id AND gm628_gm2.groupid = :gm628_3768) WHERE 1 = 1 AND ej628_ue.status = :ej628_active AND ej628_e.status = :ej628_enabled AND ej628_ue.timestart < :ej628_now1 AND (ej628_ue.timeend = 0 OR ej628_ue.timeend > :ej628_now2) AND eu628_u.deleted = 0 AND eu628_u.id <> :eu628_guestid AND gm628_gm2.userid IS NOT NULL AND eu628_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu629_u.id FROM {user} eu629_u JOIN {user_enrolments} ej629_ue ON ej629_ue.userid = eu629_u.id JOIN {enrol} ej629_e ON (ej629_e.id = ej629_ue.enrolid AND ej629_e.courseid = :ej629_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu629_u.id LEFT JOIN {groups_members} gm629_gm2 ON (gm629_gm2.userid = eu629_u.id AND gm629_gm2.groupid = :gm629_3774) WHERE 1 = 1 AND ej629_ue.status = :ej629_active AND ej629_e.status = :ej629_enabled AND ej629_ue.timestart < :ej629_now1 AND (ej629_ue.timeend = 0 OR ej629_ue.timeend > :ej629_now2) AND eu629_u.deleted = 0 AND eu629_u.id <> :eu629_guestid AND gm629_gm2.userid IS NOT NULL AND eu629_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu630_u.id FROM {user} eu630_u JOIN {user_enrolments} ej630_ue ON ej630_ue.userid = eu630_u.id JOIN {enrol} ej630_e ON (ej630_e.id = ej630_ue.enrolid AND ej630_e.courseid = :ej630_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu630_u.id LEFT JOIN {groups_members} gm630_gm2 ON (gm630_gm2.userid = eu630_u.id AND gm630_gm2.groupid = :gm630_3780) WHERE 1 = 1 AND ej630_ue.status = :ej630_active AND ej630_e.status = :ej630_enabled AND ej630_ue.timestart < :ej630_now1 AND (ej630_ue.timeend = 0 OR ej630_ue.timeend > :ej630_now2) AND eu630_u.deleted = 0 AND eu630_u.id <> :eu630_guestid AND gm630_gm2.userid IS NOT NULL AND eu630_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu631_u.id FROM {user} eu631_u JOIN {user_enrolments} ej631_ue ON ej631_ue.userid = eu631_u.id JOIN {enrol} ej631_e ON (ej631_e.id = ej631_ue.enrolid AND ej631_e.courseid = :ej631_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu631_u.id LEFT JOIN {groups_members} gm631_gm2 ON (gm631_gm2.userid = eu631_u.id AND gm631_gm2.groupid = :gm631_3786) WHERE 1 = 1 AND ej631_ue.status = :ej631_active AND ej631_e.status = :ej631_enabled AND ej631_ue.timestart < :ej631_now1 AND (ej631_ue.timeend = 0 OR ej631_ue.timeend > :ej631_now2) AND eu631_u.deleted = 0 AND eu631_u.id <> :eu631_guestid AND gm631_gm2.userid IS NOT NULL AND eu631_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu632_u.id FROM {user} eu632_u JOIN {user_enrolments} ej632_ue ON ej632_ue.userid = eu632_u.id JOIN {enrol} ej632_e ON (ej632_e.id = ej632_ue.enrolid AND ej632_e.courseid = :ej632_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu632_u.id LEFT JOIN {groups_members} gm632_gm2 ON (gm632_gm2.userid = eu632_u.id AND gm632_gm2.groupid = :gm632_3792) WHERE 1 = 1 AND ej632_ue.status = :ej632_active AND ej632_e.status = :ej632_enabled AND ej632_ue.timestart < :ej632_now1 AND (ej632_ue.timeend = 0 OR ej632_ue.timeend > :ej632_now2) AND eu632_u.deleted = 0 AND eu632_u.id <> :eu632_guestid AND gm632_gm2.userid IS NOT NULL AND eu632_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu633_u.id FROM {user} eu633_u JOIN {user_enrolments} ej633_ue ON ej633_ue.userid = eu633_u.id JOIN {enrol} ej633_e ON (ej633_e.id = ej633_ue.enrolid AND ej633_e.courseid = :ej633_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu633_u.id LEFT JOIN {groups_members} gm633_gm2 ON (gm633_gm2.userid = eu633_u.id AND gm633_gm2.groupid = :gm633_3798) WHERE 1 = 1 AND ej633_ue.status = :ej633_active AND ej633_e.status = :ej633_enabled AND ej633_ue.timestart < :ej633_now1 AND (ej633_ue.timeend = 0 OR ej633_ue.timeend > :ej633_now2) AND eu633_u.deleted = 0 AND eu633_u.id <> :eu633_guestid AND gm633_gm2.userid IS NOT NULL AND eu633_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu634_u.id FROM {user} eu634_u JOIN {user_enrolments} ej634_ue ON ej634_ue.userid = eu634_u.id JOIN {enrol} ej634_e ON (ej634_e.id = ej634_ue.enrolid AND ej634_e.courseid = :ej634_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu634_u.id LEFT JOIN {groups_members} gm634_gm2 ON (gm634_gm2.userid = eu634_u.id AND gm634_gm2.groupid = :gm634_3804) WHERE 1 = 1 AND ej634_ue.status = :ej634_active AND ej634_e.status = :ej634_enabled AND ej634_ue.timestart < :ej634_now1 AND (ej634_ue.timeend = 0 OR ej634_ue.timeend > :ej634_now2) AND eu634_u.deleted = 0 AND eu634_u.id <> :eu634_guestid AND gm634_gm2.userid IS NOT NULL AND eu634_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu635_u.id FROM {user} eu635_u JOIN {user_enrolments} ej635_ue ON ej635_ue.userid = eu635_u.id JOIN {enrol} ej635_e ON (ej635_e.id = ej635_ue.enrolid AND ej635_e.courseid = :ej635_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu635_u.id LEFT JOIN {groups_members} gm635_gm2 ON (gm635_gm2.userid = eu635_u.id AND gm635_gm2.groupid = :gm635_3810) WHERE 1 = 1 AND ej635_ue.status = :ej635_active AND ej635_e.status = :ej635_enabled AND ej635_ue.timestart < :ej635_now1 AND (ej635_ue.timeend = 0 OR ej635_ue.timeend > :ej635_now2) AND eu635_u.deleted = 0 AND eu635_u.id <> :eu635_guestid AND gm635_gm2.userid IS NOT NULL AND eu635_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu636_u.id FROM {user} eu636_u JOIN {user_enrolments} ej636_ue ON ej636_ue.userid = eu636_u.id JOIN {enrol} ej636_e ON (ej636_e.id = ej636_ue.enrolid AND ej636_e.courseid = :ej636_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu636_u.id LEFT JOIN {groups_members} gm636_gm2 ON (gm636_gm2.userid = eu636_u.id AND gm636_gm2.groupid = :gm636_3816) WHERE 1 = 1 AND ej636_ue.status = :ej636_active AND ej636_e.status = :ej636_enabled AND ej636_ue.timestart < :ej636_now1 AND (ej636_ue.timeend = 0 OR ej636_ue.timeend > :ej636_now2) AND eu636_u.deleted = 0 AND eu636_u.id <> :eu636_guestid AND gm636_gm2.userid IS NOT NULL AND eu636_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu637_u.id FROM {user} eu637_u JOIN {user_enrolments} ej637_ue ON ej637_ue.userid = eu637_u.id JOIN {enrol} ej637_e ON (ej637_e.id = ej637_ue.enrolid AND ej637_e.courseid = :ej637_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu637_u.id LEFT JOIN {groups_members} gm637_gm2 ON (gm637_gm2.userid = eu637_u.id AND gm637_gm2.groupid = :gm637_3822) WHERE 1 = 1 AND ej637_ue.status = :ej637_active AND ej637_e.status = :ej637_enabled AND ej637_ue.timestart < :ej637_now1 AND (ej637_ue.timeend = 0 OR ej637_ue.timeend > :ej637_now2) AND eu637_u.deleted = 0 AND eu637_u.id <> :eu637_guestid AND gm637_gm2.userid IS NOT NULL AND eu637_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu638_u.id FROM {user} eu638_u JOIN {user_enrolments} ej638_ue ON ej638_ue.userid = eu638_u.id JOIN {enrol} ej638_e ON (ej638_e.id = ej638_ue.enrolid AND ej638_e.courseid = :ej638_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu638_u.id LEFT JOIN {groups_members} gm638_gm2 ON (gm638_gm2.userid = eu638_u.id AND gm638_gm2.groupid = :gm638_3828) WHERE 1 = 1 AND ej638_ue.status = :ej638_active AND ej638_e.status = :ej638_enabled AND ej638_ue.timestart < :ej638_now1 AND (ej638_ue.timeend = 0 OR ej638_ue.timeend > :ej638_now2) AND eu638_u.deleted = 0 AND eu638_u.id <> :eu638_guestid AND gm638_gm2.userid IS NOT NULL AND eu638_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu639_u.id FROM {user} eu639_u JOIN {user_enrolments} ej639_ue ON ej639_ue.userid = eu639_u.id JOIN {enrol} ej639_e ON (ej639_e.id = ej639_ue.enrolid AND ej639_e.courseid = :ej639_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu639_u.id LEFT JOIN {groups_members} gm639_gm2 ON (gm639_gm2.userid = eu639_u.id AND gm639_gm2.groupid = :gm639_3834) WHERE 1 = 1 AND ej639_ue.status = :ej639_active AND ej639_e.status = :ej639_enabled AND ej639_ue.timestart < :ej639_now1 AND (ej639_ue.timeend = 0 OR ej639_ue.timeend > :ej639_now2) AND eu639_u.deleted = 0 AND eu639_u.id <> :eu639_guestid AND gm639_gm2.userid IS NOT NULL AND eu639_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu640_u.id FROM {user} eu640_u JOIN {user_enrolments} ej640_ue ON ej640_ue.userid = eu640_u.id JOIN {enrol} ej640_e ON (ej640_e.id = ej640_ue.enrolid AND ej640_e.courseid = :ej640_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu640_u.id LEFT JOIN {groups_members} gm640_gm2 ON (gm640_gm2.userid = eu640_u.id AND gm640_gm2.groupid = :gm640_3840) WHERE 1 = 1 AND ej640_ue.status = :ej640_active AND ej640_e.status = :ej640_enabled AND ej640_ue.timestart < :ej640_now1 AND (ej640_ue.timeend = 0 OR ej640_ue.timeend > :ej640_now2) AND eu640_u.deleted = 0 AND eu640_u.id <> :eu640_guestid AND gm640_gm2.userid IS NOT NULL AND eu640_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu641_u.id FROM {user} eu641_u JOIN {user_enrolments} ej641_ue ON ej641_ue.userid = eu641_u.id JOIN {enrol} ej641_e ON (ej641_e.id = ej641_ue.enrolid AND ej641_e.courseid = :ej641_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu641_u.id LEFT JOIN {groups_members} gm641_gm2 ON (gm641_gm2.userid = eu641_u.id AND gm641_gm2.groupid = :gm641_3846) WHERE 1 = 1 AND ej641_ue.status = :ej641_active AND ej641_e.status = :ej641_enabled AND ej641_ue.timestart < :ej641_now1 AND (ej641_ue.timeend = 0 OR ej641_ue.timeend > :ej641_now2) AND eu641_u.deleted = 0 AND eu641_u.id <> :eu641_guestid AND gm641_gm2.userid IS NOT NULL AND eu641_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu642_u.id FROM {user} eu642_u JOIN {user_enrolments} ej642_ue ON ej642_ue.userid = eu642_u.id JOIN {enrol} ej642_e ON (ej642_e.id = ej642_ue.enrolid AND ej642_e.courseid = :ej642_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu642_u.id LEFT JOIN {groups_members} gm642_gm2 ON (gm642_gm2.userid = eu642_u.id AND gm642_gm2.groupid = :gm642_3852) WHERE 1 = 1 AND ej642_ue.status = :ej642_active AND ej642_e.status = :ej642_enabled AND ej642_ue.timestart < :ej642_now1 AND (ej642_ue.timeend = 0 OR ej642_ue.timeend > :ej642_now2) AND eu642_u.deleted = 0 AND eu642_u.id <> :eu642_guestid AND gm642_gm2.userid IS NOT NULL AND eu642_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu643_u.id FROM {user} eu643_u JOIN {user_enrolments} ej643_ue ON ej643_ue.userid = eu643_u.id JOIN {enrol} ej643_e ON (ej643_e.id = ej643_ue.enrolid AND ej643_e.courseid = :ej643_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu643_u.id LEFT JOIN {groups_members} gm643_gm2 ON (gm643_gm2.userid = eu643_u.id AND gm643_gm2.groupid = :gm643_3858) WHERE 1 = 1 AND ej643_ue.status = :ej643_active AND ej643_e.status = :ej643_enabled AND ej643_ue.timestart < :ej643_now1 AND (ej643_ue.timeend = 0 OR ej643_ue.timeend > :ej643_now2) AND eu643_u.deleted = 0 AND eu643_u.id <> :eu643_guestid AND gm643_gm2.userid IS NOT NULL AND eu643_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu644_u.id FROM {user} eu644_u JOIN {user_enrolments} ej644_ue ON ej644_ue.userid = eu644_u.id JOIN {enrol} ej644_e ON (ej644_e.id = ej644_ue.enrolid AND ej644_e.courseid = :ej644_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu644_u.id LEFT JOIN {groups_members} gm644_gm2 ON (gm644_gm2.userid = eu644_u.id AND gm644_gm2.groupid = :gm644_3864) WHERE 1 = 1 AND ej644_ue.status = :ej644_active AND ej644_e.status = :ej644_enabled AND ej644_ue.timestart < :ej644_now1 AND (ej644_ue.timeend = 0 OR ej644_ue.timeend > :ej644_now2) AND eu644_u.deleted = 0 AND eu644_u.id <> :eu644_guestid AND gm644_gm2.userid IS NOT NULL AND eu644_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu645_u.id FROM {user} eu645_u JOIN {user_enrolments} ej645_ue ON ej645_ue.userid = eu645_u.id JOIN {enrol} ej645_e ON (ej645_e.id = ej645_ue.enrolid AND ej645_e.courseid = :ej645_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu645_u.id LEFT JOIN {groups_members} gm645_gm2 ON (gm645_gm2.userid = eu645_u.id AND gm645_gm2.groupid = :gm645_3870) WHERE 1 = 1 AND ej645_ue.status = :ej645_active AND ej645_e.status = :ej645_enabled AND ej645_ue.timestart < :ej645_now1 AND (ej645_ue.timeend = 0 OR ej645_ue.timeend > :ej645_now2) AND eu645_u.deleted = 0 AND eu645_u.id <> :eu645_guestid AND gm645_gm2.userid IS NOT NULL AND eu645_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu646_u.id FROM {user} eu646_u JOIN {user_enrolments} ej646_ue ON ej646_ue.userid = eu646_u.id JOIN {enrol} ej646_e ON (ej646_e.id = ej646_ue.enrolid AND ej646_e.courseid = :ej646_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu646_u.id LEFT JOIN {groups_members} gm646_gm2 ON (gm646_gm2.userid = eu646_u.id AND gm646_gm2.groupid = :gm646_3876) WHERE 1 = 1 AND ej646_ue.status = :ej646_active AND ej646_e.status = :ej646_enabled AND ej646_ue.timestart < :ej646_now1 AND (ej646_ue.timeend = 0 OR ej646_ue.timeend > :ej646_now2) AND eu646_u.deleted = 0 AND eu646_u.id <> :eu646_guestid AND gm646_gm2.userid IS NOT NULL AND eu646_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu647_u.id FROM {user} eu647_u JOIN {user_enrolments} ej647_ue ON ej647_ue.userid = eu647_u.id JOIN {enrol} ej647_e ON (ej647_e.id = ej647_ue.enrolid AND ej647_e.courseid = :ej647_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu647_u.id LEFT JOIN {groups_members} gm647_gm2 ON (gm647_gm2.userid = eu647_u.id AND gm647_gm2.groupid = :gm647_3882) WHERE 1 = 1 AND ej647_ue.status = :ej647_active AND ej647_e.status = :ej647_enabled AND ej647_ue.timestart < :ej647_now1 AND (ej647_ue.timeend = 0 OR ej647_ue.timeend > :ej647_now2) AND eu647_u.deleted = 0 AND eu647_u.id <> :eu647_guestid AND gm647_gm2.userid IS NOT NULL AND eu647_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu648_u.id FROM {user} eu648_u JOIN {user_enrolments} ej648_ue ON ej648_ue.userid = eu648_u.id JOIN {enrol} ej648_e ON (ej648_e.id = ej648_ue.enrolid AND ej648_e.courseid = :ej648_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu648_u.id LEFT JOIN {groups_members} gm648_gm2 ON (gm648_gm2.userid = eu648_u.id AND gm648_gm2.groupid = :gm648_3888) WHERE 1 = 1 AND ej648_ue.status = :ej648_active AND ej648_e.status = :ej648_enabled AND ej648_ue.timestart < :ej648_now1 AND (ej648_ue.timeend = 0 OR ej648_ue.timeend > :ej648_now2) AND eu648_u.deleted = 0 AND eu648_u.id <> :eu648_guestid AND gm648_gm2.userid IS NOT NULL AND eu648_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu649_u.id FROM {user} eu649_u JOIN {user_enrolments} ej649_ue ON ej649_ue.userid = eu649_u.id JOIN {enrol} ej649_e ON (ej649_e.id = ej649_ue.enrolid AND ej649_e.courseid = :ej649_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu649_u.id LEFT JOIN {groups_members} gm649_gm2 ON (gm649_gm2.userid = eu649_u.id AND gm649_gm2.groupid = :gm649_3894) WHERE 1 = 1 AND ej649_ue.status = :ej649_active AND ej649_e.status = :ej649_enabled AND ej649_ue.timestart < :ej649_now1 AND (ej649_ue.timeend = 0 OR ej649_ue.timeend > :ej649_now2) AND eu649_u.deleted = 0 AND eu649_u.id <> :eu649_guestid AND gm649_gm2.userid IS NOT NULL AND eu649_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu650_u.id FROM {user} eu650_u JOIN {user_enrolments} ej650_ue ON ej650_ue.userid = eu650_u.id JOIN {enrol} ej650_e ON (ej650_e.id = ej650_ue.enrolid AND ej650_e.courseid = :ej650_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu650_u.id LEFT JOIN {groups_members} gm650_gm2 ON (gm650_gm2.userid = eu650_u.id AND gm650_gm2.groupid = :gm650_3900) WHERE 1 = 1 AND ej650_ue.status = :ej650_active AND ej650_e.status = :ej650_enabled AND ej650_ue.timestart < :ej650_now1 AND (ej650_ue.timeend = 0 OR ej650_ue.timeend > :ej650_now2) AND eu650_u.deleted = 0 AND eu650_u.id <> :eu650_guestid AND gm650_gm2.userid IS NOT NULL AND eu650_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu651_u.id FROM {user} eu651_u JOIN {user_enrolments} ej651_ue ON ej651_ue.userid = eu651_u.id JOIN {enrol} ej651_e ON (ej651_e.id = ej651_ue.enrolid AND ej651_e.courseid = :ej651_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu651_u.id LEFT JOIN {groups_members} gm651_gm2 ON (gm651_gm2.userid = eu651_u.id AND gm651_gm2.groupid = :gm651_3906) WHERE 1 = 1 AND ej651_ue.status = :ej651_active AND ej651_e.status = :ej651_enabled AND ej651_ue.timestart < :ej651_now1 AND (ej651_ue.timeend = 0 OR ej651_ue.timeend > :ej651_now2) AND eu651_u.deleted = 0 AND eu651_u.id <> :eu651_guestid AND gm651_gm2.userid IS NOT NULL AND eu651_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu652_u.id FROM {user} eu652_u JOIN {user_enrolments} ej652_ue ON ej652_ue.userid = eu652_u.id JOIN {enrol} ej652_e ON (ej652_e.id = ej652_ue.enrolid AND ej652_e.courseid = :ej652_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu652_u.id LEFT JOIN {groups_members} gm652_gm2 ON (gm652_gm2.userid = eu652_u.id AND gm652_gm2.groupid = :gm652_3912) WHERE 1 = 1 AND ej652_ue.status = :ej652_active AND ej652_e.status = :ej652_enabled AND ej652_ue.timestart < :ej652_now1 AND (ej652_ue.timeend = 0 OR ej652_ue.timeend > :ej652_now2) AND eu652_u.deleted = 0 AND eu652_u.id <> :eu652_guestid AND gm652_gm2.userid IS NOT NULL AND eu652_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu653_u.id FROM {user} eu653_u JOIN {user_enrolments} ej653_ue ON ej653_ue.userid = eu653_u.id JOIN {enrol} ej653_e ON (ej653_e.id = ej653_ue.enrolid AND ej653_e.courseid = :ej653_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu653_u.id LEFT JOIN {groups_members} gm653_gm2 ON (gm653_gm2.userid = eu653_u.id AND gm653_gm2.groupid = :gm653_3918) WHERE 1 = 1 AND ej653_ue.status = :ej653_active AND ej653_e.status = :ej653_enabled AND ej653_ue.timestart < :ej653_now1 AND (ej653_ue.timeend = 0 OR ej653_ue.timeend > :ej653_now2) AND eu653_u.deleted = 0 AND eu653_u.id <> :eu653_guestid AND gm653_gm2.userid IS NOT NULL AND eu653_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu654_u.id FROM {user} eu654_u JOIN {user_enrolments} ej654_ue ON ej654_ue.userid = eu654_u.id JOIN {enrol} ej654_e ON (ej654_e.id = ej654_ue.enrolid AND ej654_e.courseid = :ej654_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu654_u.id LEFT JOIN {groups_members} gm654_gm2 ON (gm654_gm2.userid = eu654_u.id AND gm654_gm2.groupid = :gm654_3924) WHERE 1 = 1 AND ej654_ue.status = :ej654_active AND ej654_e.status = :ej654_enabled AND ej654_ue.timestart < :ej654_now1 AND (ej654_ue.timeend = 0 OR ej654_ue.timeend > :ej654_now2) AND eu654_u.deleted = 0 AND eu654_u.id <> :eu654_guestid AND gm654_gm2.userid IS NOT NULL AND eu654_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu655_u.id FROM {user} eu655_u JOIN {user_enrolments} ej655_ue ON ej655_ue.userid = eu655_u.id JOIN {enrol} ej655_e ON (ej655_e.id = ej655_ue.enrolid AND ej655_e.courseid = :ej655_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu655_u.id LEFT JOIN {groups_members} gm655_gm2 ON (gm655_gm2.userid = eu655_u.id AND gm655_gm2.groupid = :gm655_3930) WHERE 1 = 1 AND ej655_ue.status = :ej655_active AND ej655_e.status = :ej655_enabled AND ej655_ue.timestart < :ej655_now1 AND (ej655_ue.timeend = 0 OR ej655_ue.timeend > :ej655_now2) AND eu655_u.deleted = 0 AND eu655_u.id <> :eu655_guestid AND gm655_gm2.userid IS NOT NULL AND eu655_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu656_u.id FROM {user} eu656_u JOIN {user_enrolments} ej656_ue ON ej656_ue.userid = eu656_u.id JOIN {enrol} ej656_e ON (ej656_e.id = ej656_ue.enrolid AND ej656_e.courseid = :ej656_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu656_u.id LEFT JOIN {groups_members} gm656_gm2 ON (gm656_gm2.userid = eu656_u.id AND gm656_gm2.groupid = :gm656_3936) WHERE 1 = 1 AND ej656_ue.status = :ej656_active AND ej656_e.status = :ej656_enabled AND ej656_ue.timestart < :ej656_now1 AND (ej656_ue.timeend = 0 OR ej656_ue.timeend > :ej656_now2) AND eu656_u.deleted = 0 AND eu656_u.id <> :eu656_guestid AND gm656_gm2.userid IS NOT NULL AND eu656_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu657_u.id FROM {user} eu657_u JOIN {user_enrolments} ej657_ue ON ej657_ue.userid = eu657_u.id JOIN {enrol} ej657_e ON (ej657_e.id = ej657_ue.enrolid AND ej657_e.courseid = :ej657_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu657_u.id LEFT JOIN {groups_members} gm657_gm2 ON (gm657_gm2.userid = eu657_u.id AND gm657_gm2.groupid = :gm657_3942) WHERE 1 = 1 AND ej657_ue.status = :ej657_active AND ej657_e.status = :ej657_enabled AND ej657_ue.timestart < :ej657_now1 AND (ej657_ue.timeend = 0 OR ej657_ue.timeend > :ej657_now2) AND eu657_u.deleted = 0 AND eu657_u.id <> :eu657_guestid AND gm657_gm2.userid IS NOT NULL AND eu657_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu658_u.id FROM {user} eu658_u JOIN {user_enrolments} ej658_ue ON ej658_ue.userid = eu658_u.id JOIN {enrol} ej658_e ON (ej658_e.id = ej658_ue.enrolid AND ej658_e.courseid = :ej658_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu658_u.id LEFT JOIN {groups_members} gm658_gm2 ON (gm658_gm2.userid = eu658_u.id AND gm658_gm2.groupid = :gm658_3948) WHERE 1 = 1 AND ej658_ue.status = :ej658_active AND ej658_e.status = :ej658_enabled AND ej658_ue.timestart < :ej658_now1 AND (ej658_ue.timeend = 0 OR ej658_ue.timeend > :ej658_now2) AND eu658_u.deleted = 0 AND eu658_u.id <> :eu658_guestid AND gm658_gm2.userid IS NOT NULL AND eu658_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu659_u.id FROM {user} eu659_u JOIN {user_enrolments} ej659_ue ON ej659_ue.userid = eu659_u.id JOIN {enrol} ej659_e ON (ej659_e.id = ej659_ue.enrolid AND ej659_e.courseid = :ej659_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu659_u.id LEFT JOIN {groups_members} gm659_gm2 ON (gm659_gm2.userid = eu659_u.id AND gm659_gm2.groupid = :gm659_3954) WHERE 1 = 1 AND ej659_ue.status = :ej659_active AND ej659_e.status = :ej659_enabled AND ej659_ue.timestart < :ej659_now1 AND (ej659_ue.timeend = 0 OR ej659_ue.timeend > :ej659_now2) AND eu659_u.deleted = 0 AND eu659_u.id <> :eu659_guestid AND gm659_gm2.userid IS NOT NULL AND eu659_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu660_u.id FROM {user} eu660_u JOIN {user_enrolments} ej660_ue ON ej660_ue.userid = eu660_u.id JOIN {enrol} ej660_e ON (ej660_e.id = ej660_ue.enrolid AND ej660_e.courseid = :ej660_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu660_u.id LEFT JOIN {groups_members} gm660_gm2 ON (gm660_gm2.userid = eu660_u.id AND gm660_gm2.groupid = :gm660_3960) WHERE 1 = 1 AND ej660_ue.status = :ej660_active AND ej660_e.status = :ej660_enabled AND ej660_ue.timestart < :ej660_now1 AND (ej660_ue.timeend = 0 OR ej660_ue.timeend > :ej660_now2) AND eu660_u.deleted = 0 AND eu660_u.id <> :eu660_guestid AND gm660_gm2.userid IS NOT NULL AND eu660_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu661_u.id FROM {user} eu661_u JOIN {user_enrolments} ej661_ue ON ej661_ue.userid = eu661_u.id JOIN {enrol} ej661_e ON (ej661_e.id = ej661_ue.enrolid AND ej661_e.courseid = :ej661_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu661_u.id LEFT JOIN {groups_members} gm661_gm2 ON (gm661_gm2.userid = eu661_u.id AND gm661_gm2.groupid = :gm661_3966) WHERE 1 = 1 AND ej661_ue.status = :ej661_active AND ej661_e.status = :ej661_enabled AND ej661_ue.timestart < :ej661_now1 AND (ej661_ue.timeend = 0 OR ej661_ue.timeend > :ej661_now2) AND eu661_u.deleted = 0 AND eu661_u.id <> :eu661_guestid AND gm661_gm2.userid IS NOT NULL AND eu661_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu662_u.id FROM {user} eu662_u JOIN {user_enrolments} ej662_ue ON ej662_ue.userid = eu662_u.id JOIN {enrol} ej662_e ON (ej662_e.id = ej662_ue.enrolid AND ej662_e.courseid = :ej662_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu662_u.id LEFT JOIN {groups_members} gm662_gm2 ON (gm662_gm2.userid = eu662_u.id AND gm662_gm2.groupid = :gm662_3972) WHERE 1 = 1 AND ej662_ue.status = :ej662_active AND ej662_e.status = :ej662_enabled AND ej662_ue.timestart < :ej662_now1 AND (ej662_ue.timeend = 0 OR ej662_ue.timeend > :ej662_now2) AND eu662_u.deleted = 0 AND eu662_u.id <> :eu662_guestid AND gm662_gm2.userid IS NOT NULL AND eu662_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu663_u.id FROM {user} eu663_u JOIN {user_enrolments} ej663_ue ON ej663_ue.userid = eu663_u.id JOIN {enrol} ej663_e ON (ej663_e.id = ej663_ue.enrolid AND ej663_e.courseid = :ej663_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu663_u.id LEFT JOIN {groups_members} gm663_gm2 ON (gm663_gm2.userid = eu663_u.id AND gm663_gm2.groupid = :gm663_3978) WHERE 1 = 1 AND ej663_ue.status = :ej663_active AND ej663_e.status = :ej663_enabled AND ej663_ue.timestart < :ej663_now1 AND (ej663_ue.timeend = 0 OR ej663_ue.timeend > :ej663_now2) AND eu663_u.deleted = 0 AND eu663_u.id <> :eu663_guestid AND gm663_gm2.userid IS NOT NULL AND eu663_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu664_u.id FROM {user} eu664_u JOIN {user_enrolments} ej664_ue ON ej664_ue.userid = eu664_u.id JOIN {enrol} ej664_e ON (ej664_e.id = ej664_ue.enrolid AND ej664_e.courseid = :ej664_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu664_u.id LEFT JOIN {groups_members} gm664_gm2 ON (gm664_gm2.userid = eu664_u.id AND gm664_gm2.groupid = :gm664_3984) WHERE 1 = 1 AND ej664_ue.status = :ej664_active AND ej664_e.status = :ej664_enabled AND ej664_ue.timestart < :ej664_now1 AND (ej664_ue.timeend = 0 OR ej664_ue.timeend > :ej664_now2) AND eu664_u.deleted = 0 AND eu664_u.id <> :eu664_guestid AND gm664_gm2.userid IS NOT NULL AND eu664_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu665_u.id FROM {user} eu665_u JOIN {user_enrolments} ej665_ue ON ej665_ue.userid = eu665_u.id JOIN {enrol} ej665_e ON (ej665_e.id = ej665_ue.enrolid AND ej665_e.courseid = :ej665_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu665_u.id LEFT JOIN {groups_members} gm665_gm2 ON (gm665_gm2.userid = eu665_u.id AND gm665_gm2.groupid = :gm665_3990) WHERE 1 = 1 AND ej665_ue.status = :ej665_active AND ej665_e.status = :ej665_enabled AND ej665_ue.timestart < :ej665_now1 AND (ej665_ue.timeend = 0 OR ej665_ue.timeend > :ej665_now2) AND eu665_u.deleted = 0 AND eu665_u.id <> :eu665_guestid AND gm665_gm2.userid IS NOT NULL AND eu665_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu666_u.id FROM {user} eu666_u JOIN {user_enrolments} ej666_ue ON ej666_ue.userid = eu666_u.id JOIN {enrol} ej666_e ON (ej666_e.id = ej666_ue.enrolid AND ej666_e.courseid = :ej666_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu666_u.id LEFT JOIN {groups_members} gm666_gm2 ON (gm666_gm2.userid = eu666_u.id AND gm666_gm2.groupid = :gm666_3996) WHERE 1 = 1 AND ej666_ue.status = :ej666_active AND ej666_e.status = :ej666_enabled AND ej666_ue.timestart < :ej666_now1 AND (ej666_ue.timeend = 0 OR ej666_ue.timeend > :ej666_now2) AND eu666_u.deleted = 0 AND eu666_u.id <> :eu666_guestid AND gm666_gm2.userid IS NOT NULL AND eu666_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu667_u.id FROM {user} eu667_u JOIN {user_enrolments} ej667_ue ON ej667_ue.userid = eu667_u.id JOIN {enrol} ej667_e ON (ej667_e.id = ej667_ue.enrolid AND ej667_e.courseid = :ej667_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu667_u.id LEFT JOIN {groups_members} gm667_gm2 ON (gm667_gm2.userid = eu667_u.id AND gm667_gm2.groupid = :gm667_4002) WHERE 1 = 1 AND ej667_ue.status = :ej667_active AND ej667_e.status = :ej667_enabled AND ej667_ue.timestart < :ej667_now1 AND (ej667_ue.timeend = 0 OR ej667_ue.timeend > :ej667_now2) AND eu667_u.deleted = 0 AND eu667_u.id <> :eu667_guestid AND gm667_gm2.userid IS NOT NULL AND eu667_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu668_u.id FROM {user} eu668_u JOIN {user_enrolments} ej668_ue ON ej668_ue.userid = eu668_u.id JOIN {enrol} ej668_e ON (ej668_e.id = ej668_ue.enrolid AND ej668_e.courseid = :ej668_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu668_u.id LEFT JOIN {groups_members} gm668_gm2 ON (gm668_gm2.userid = eu668_u.id AND gm668_gm2.groupid = :gm668_4008) WHERE 1 = 1 AND ej668_ue.status = :ej668_active AND ej668_e.status = :ej668_enabled AND ej668_ue.timestart < :ej668_now1 AND (ej668_ue.timeend = 0 OR ej668_ue.timeend > :ej668_now2) AND eu668_u.deleted = 0 AND eu668_u.id <> :eu668_guestid AND gm668_gm2.userid IS NOT NULL AND eu668_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu669_u.id FROM {user} eu669_u JOIN {user_enrolments} ej669_ue ON ej669_ue.userid = eu669_u.id JOIN {enrol} ej669_e ON (ej669_e.id = ej669_ue.enrolid AND ej669_e.courseid = :ej669_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu669_u.id LEFT JOIN {groups_members} gm669_gm2 ON (gm669_gm2.userid = eu669_u.id AND gm669_gm2.groupid = :gm669_4014) WHERE 1 = 1 AND ej669_ue.status = :ej669_active AND ej669_e.status = :ej669_enabled AND ej669_ue.timestart < :ej669_now1 AND (ej669_ue.timeend = 0 OR ej669_ue.timeend > :ej669_now2) AND eu669_u.deleted = 0 AND eu669_u.id <> :eu669_guestid AND gm669_gm2.userid IS NOT NULL AND eu669_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu670_u.id FROM {user} eu670_u JOIN {user_enrolments} ej670_ue ON ej670_ue.userid = eu670_u.id JOIN {enrol} ej670_e ON (ej670_e.id = ej670_ue.enrolid AND ej670_e.courseid = :ej670_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu670_u.id LEFT JOIN {groups_members} gm670_gm2 ON (gm670_gm2.userid = eu670_u.id AND gm670_gm2.groupid = :gm670_4020) WHERE 1 = 1 AND ej670_ue.status = :ej670_active AND ej670_e.status = :ej670_enabled AND ej670_ue.timestart < :ej670_now1 AND (ej670_ue.timeend = 0 OR ej670_ue.timeend > :ej670_now2) AND eu670_u.deleted = 0 AND eu670_u.id <> :eu670_guestid AND gm670_gm2.userid IS NOT NULL AND eu670_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu671_u.id FROM {user} eu671_u JOIN {user_enrolments} ej671_ue ON ej671_ue.userid = eu671_u.id JOIN {enrol} ej671_e ON (ej671_e.id = ej671_ue.enrolid AND ej671_e.courseid = :ej671_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu671_u.id LEFT JOIN {groups_members} gm671_gm2 ON (gm671_gm2.userid = eu671_u.id AND gm671_gm2.groupid = :gm671_4026) WHERE 1 = 1 AND ej671_ue.status = :ej671_active AND ej671_e.status = :ej671_enabled AND ej671_ue.timestart < :ej671_now1 AND (ej671_ue.timeend = 0 OR ej671_ue.timeend > :ej671_now2) AND eu671_u.deleted = 0 AND eu671_u.id <> :eu671_guestid AND gm671_gm2.userid IS NOT NULL AND eu671_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu672_u.id FROM {user} eu672_u JOIN {user_enrolments} ej672_ue ON ej672_ue.userid = eu672_u.id JOIN {enrol} ej672_e ON (ej672_e.id = ej672_ue.enrolid AND ej672_e.courseid = :ej672_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu672_u.id LEFT JOIN {groups_members} gm672_gm2 ON (gm672_gm2.userid = eu672_u.id AND gm672_gm2.groupid = :gm672_4032) WHERE 1 = 1 AND ej672_ue.status = :ej672_active AND ej672_e.status = :ej672_enabled AND ej672_ue.timestart < :ej672_now1 AND (ej672_ue.timeend = 0 OR ej672_ue.timeend > :ej672_now2) AND eu672_u.deleted = 0 AND eu672_u.id <> :eu672_guestid AND gm672_gm2.userid IS NOT NULL AND eu672_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu673_u.id FROM {user} eu673_u JOIN {user_enrolments} ej673_ue ON ej673_ue.userid = eu673_u.id JOIN {enrol} ej673_e ON (ej673_e.id = ej673_ue.enrolid AND ej673_e.courseid = :ej673_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu673_u.id LEFT JOIN {groups_members} gm673_gm2 ON (gm673_gm2.userid = eu673_u.id AND gm673_gm2.groupid = :gm673_4038) WHERE 1 = 1 AND ej673_ue.status = :ej673_active AND ej673_e.status = :ej673_enabled AND ej673_ue.timestart < :ej673_now1 AND (ej673_ue.timeend = 0 OR ej673_ue.timeend > :ej673_now2) AND eu673_u.deleted = 0 AND eu673_u.id <> :eu673_guestid AND gm673_gm2.userid IS NOT NULL AND eu673_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu674_u.id FROM {user} eu674_u JOIN {user_enrolments} ej674_ue ON ej674_ue.userid = eu674_u.id JOIN {enrol} ej674_e ON (ej674_e.id = ej674_ue.enrolid AND ej674_e.courseid = :ej674_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu674_u.id LEFT JOIN {groups_members} gm674_gm2 ON (gm674_gm2.userid = eu674_u.id AND gm674_gm2.groupid = :gm674_4044) WHERE 1 = 1 AND ej674_ue.status = :ej674_active AND ej674_e.status = :ej674_enabled AND ej674_ue.timestart < :ej674_now1 AND (ej674_ue.timeend = 0 OR ej674_ue.timeend > :ej674_now2) AND eu674_u.deleted = 0 AND eu674_u.id <> :eu674_guestid AND gm674_gm2.userid IS NOT NULL AND eu674_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu675_u.id FROM {user} eu675_u JOIN {user_enrolments} ej675_ue ON ej675_ue.userid = eu675_u.id JOIN {enrol} ej675_e ON (ej675_e.id = ej675_ue.enrolid AND ej675_e.courseid = :ej675_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu675_u.id LEFT JOIN {groups_members} gm675_gm2 ON (gm675_gm2.userid = eu675_u.id AND gm675_gm2.groupid = :gm675_4050) WHERE 1 = 1 AND ej675_ue.status = :ej675_active AND ej675_e.status = :ej675_enabled AND ej675_ue.timestart < :ej675_now1 AND (ej675_ue.timeend = 0 OR ej675_ue.timeend > :ej675_now2) AND eu675_u.deleted = 0 AND eu675_u.id <> :eu675_guestid AND gm675_gm2.userid IS NOT NULL AND eu675_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu676_u.id FROM {user} eu676_u JOIN {user_enrolments} ej676_ue ON ej676_ue.userid = eu676_u.id JOIN {enrol} ej676_e ON (ej676_e.id = ej676_ue.enrolid AND ej676_e.courseid = :ej676_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu676_u.id LEFT JOIN {groups_members} gm676_gm2 ON (gm676_gm2.userid = eu676_u.id AND gm676_gm2.groupid = :gm676_4056) WHERE 1 = 1 AND ej676_ue.status = :ej676_active AND ej676_e.status = :ej676_enabled AND ej676_ue.timestart < :ej676_now1 AND (ej676_ue.timeend = 0 OR ej676_ue.timeend > :ej676_now2) AND eu676_u.deleted = 0 AND eu676_u.id <> :eu676_guestid AND gm676_gm2.userid IS NOT NULL AND eu676_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu677_u.id FROM {user} eu677_u JOIN {user_enrolments} ej677_ue ON ej677_ue.userid = eu677_u.id JOIN {enrol} ej677_e ON (ej677_e.id = ej677_ue.enrolid AND ej677_e.courseid = :ej677_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu677_u.id LEFT JOIN {groups_members} gm677_gm2 ON (gm677_gm2.userid = eu677_u.id AND gm677_gm2.groupid = :gm677_4062) WHERE 1 = 1 AND ej677_ue.status = :ej677_active AND ej677_e.status = :ej677_enabled AND ej677_ue.timestart < :ej677_now1 AND (ej677_ue.timeend = 0 OR ej677_ue.timeend > :ej677_now2) AND eu677_u.deleted = 0 AND eu677_u.id <> :eu677_guestid AND gm677_gm2.userid IS NOT NULL AND eu677_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu678_u.id FROM {user} eu678_u JOIN {user_enrolments} ej678_ue ON ej678_ue.userid = eu678_u.id JOIN {enrol} ej678_e ON (ej678_e.id = ej678_ue.enrolid AND ej678_e.courseid = :ej678_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu678_u.id LEFT JOIN {groups_members} gm678_gm2 ON (gm678_gm2.userid = eu678_u.id AND gm678_gm2.groupid = :gm678_4068) WHERE 1 = 1 AND ej678_ue.status = :ej678_active AND ej678_e.status = :ej678_enabled AND ej678_ue.timestart < :ej678_now1 AND (ej678_ue.timeend = 0 OR ej678_ue.timeend > :ej678_now2) AND eu678_u.deleted = 0 AND eu678_u.id <> :eu678_guestid AND gm678_gm2.userid IS NOT NULL AND eu678_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu679_u.id FROM {user} eu679_u JOIN {user_enrolments} ej679_ue ON ej679_ue.userid = eu679_u.id JOIN {enrol} ej679_e ON (ej679_e.id = ej679_ue.enrolid AND ej679_e.courseid = :ej679_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu679_u.id LEFT JOIN {groups_members} gm679_gm2 ON (gm679_gm2.userid = eu679_u.id AND gm679_gm2.groupid = :gm679_4074) WHERE 1 = 1 AND ej679_ue.status = :ej679_active AND ej679_e.status = :ej679_enabled AND ej679_ue.timestart < :ej679_now1 AND (ej679_ue.timeend = 0 OR ej679_ue.timeend > :ej679_now2) AND eu679_u.deleted = 0 AND eu679_u.id <> :eu679_guestid AND gm679_gm2.userid IS NOT NULL AND eu679_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu680_u.id FROM {user} eu680_u JOIN {user_enrolments} ej680_ue ON ej680_ue.userid = eu680_u.id JOIN {enrol} ej680_e ON (ej680_e.id = ej680_ue.enrolid AND ej680_e.courseid = :ej680_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu680_u.id LEFT JOIN {groups_members} gm680_gm2 ON (gm680_gm2.userid = eu680_u.id AND gm680_gm2.groupid = :gm680_4080) WHERE 1 = 1 AND ej680_ue.status = :ej680_active AND ej680_e.status = :ej680_enabled AND ej680_ue.timestart < :ej680_now1 AND (ej680_ue.timeend = 0 OR ej680_ue.timeend > :ej680_now2) AND eu680_u.deleted = 0 AND eu680_u.id <> :eu680_guestid AND gm680_gm2.userid IS NOT NULL AND eu680_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu681_u.id FROM {user} eu681_u JOIN {user_enrolments} ej681_ue ON ej681_ue.userid = eu681_u.id JOIN {enrol} ej681_e ON (ej681_e.id = ej681_ue.enrolid AND ej681_e.courseid = :ej681_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu681_u.id LEFT JOIN {groups_members} gm681_gm2 ON (gm681_gm2.userid = eu681_u.id AND gm681_gm2.groupid = :gm681_4086) WHERE 1 = 1 AND ej681_ue.status = :ej681_active AND ej681_e.status = :ej681_enabled AND ej681_ue.timestart < :ej681_now1 AND (ej681_ue.timeend = 0 OR ej681_ue.timeend > :ej681_now2) AND eu681_u.deleted = 0 AND eu681_u.id <> :eu681_guestid AND gm681_gm2.userid IS NOT NULL AND eu681_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu682_u.id FROM {user} eu682_u JOIN {user_enrolments} ej682_ue ON ej682_ue.userid = eu682_u.id JOIN {enrol} ej682_e ON (ej682_e.id = ej682_ue.enrolid AND ej682_e.courseid = :ej682_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu682_u.id LEFT JOIN {groups_members} gm682_gm2 ON (gm682_gm2.userid = eu682_u.id AND gm682_gm2.groupid = :gm682_4092) WHERE 1 = 1 AND ej682_ue.status = :ej682_active AND ej682_e.status = :ej682_enabled AND ej682_ue.timestart < :ej682_now1 AND (ej682_ue.timeend = 0 OR ej682_ue.timeend > :ej682_now2) AND eu682_u.deleted = 0 AND eu682_u.id <> :eu682_guestid AND gm682_gm2.userid IS NOT NULL AND eu682_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu683_u.id FROM {user} eu683_u JOIN {user_enrolments} ej683_ue ON ej683_ue.userid = eu683_u.id JOIN {enrol} ej683_e ON (ej683_e.id = ej683_ue.enrolid AND ej683_e.courseid = :ej683_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu683_u.id LEFT JOIN {groups_members} gm683_gm2 ON (gm683_gm2.userid = eu683_u.id AND gm683_gm2.groupid = :gm683_4098) WHERE 1 = 1 AND ej683_ue.status = :ej683_active AND ej683_e.status = :ej683_enabled AND ej683_ue.timestart < :ej683_now1 AND (ej683_ue.timeend = 0 OR ej683_ue.timeend > :ej683_now2) AND eu683_u.deleted = 0 AND eu683_u.id <> :eu683_guestid AND gm683_gm2.userid IS NOT NULL AND eu683_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu684_u.id FROM {user} eu684_u JOIN {user_enrolments} ej684_ue ON ej684_ue.userid = eu684_u.id JOIN {enrol} ej684_e ON (ej684_e.id = ej684_ue.enrolid AND ej684_e.courseid = :ej684_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu684_u.id LEFT JOIN {groups_members} gm684_gm2 ON (gm684_gm2.userid = eu684_u.id AND gm684_gm2.groupid = :gm684_4104) WHERE 1 = 1 AND ej684_ue.status = :ej684_active AND ej684_e.status = :ej684_enabled AND ej684_ue.timestart < :ej684_now1 AND (ej684_ue.timeend = 0 OR ej684_ue.timeend > :ej684_now2) AND eu684_u.deleted = 0 AND eu684_u.id <> :eu684_guestid AND gm684_gm2.userid IS NOT NULL AND eu684_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu685_u.id FROM {user} eu685_u JOIN {user_enrolments} ej685_ue ON ej685_ue.userid = eu685_u.id JOIN {enrol} ej685_e ON (ej685_e.id = ej685_ue.enrolid AND ej685_e.courseid = :ej685_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu685_u.id LEFT JOIN {groups_members} gm685_gm2 ON (gm685_gm2.userid = eu685_u.id AND gm685_gm2.groupid = :gm685_4110) WHERE 1 = 1 AND ej685_ue.status = :ej685_active AND ej685_e.status = :ej685_enabled AND ej685_ue.timestart < :ej685_now1 AND (ej685_ue.timeend = 0 OR ej685_ue.timeend > :ej685_now2) AND eu685_u.deleted = 0 AND eu685_u.id <> :eu685_guestid AND gm685_gm2.userid IS NOT NULL AND eu685_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu686_u.id FROM {user} eu686_u JOIN {user_enrolments} ej686_ue ON ej686_ue.userid = eu686_u.id JOIN {enrol} ej686_e ON (ej686_e.id = ej686_ue.enrolid AND ej686_e.courseid = :ej686_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu686_u.id LEFT JOIN {groups_members} gm686_gm2 ON (gm686_gm2.userid = eu686_u.id AND gm686_gm2.groupid = :gm686_4116) WHERE 1 = 1 AND ej686_ue.status = :ej686_active AND ej686_e.status = :ej686_enabled AND ej686_ue.timestart < :ej686_now1 AND (ej686_ue.timeend = 0 OR ej686_ue.timeend > :ej686_now2) AND eu686_u.deleted = 0 AND eu686_u.id <> :eu686_guestid AND gm686_gm2.userid IS NOT NULL AND eu686_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu687_u.id FROM {user} eu687_u JOIN {user_enrolments} ej687_ue ON ej687_ue.userid = eu687_u.id JOIN {enrol} ej687_e ON (ej687_e.id = ej687_ue.enrolid AND ej687_e.courseid = :ej687_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu687_u.id LEFT JOIN {groups_members} gm687_gm2 ON (gm687_gm2.userid = eu687_u.id AND gm687_gm2.groupid = :gm687_4122) WHERE 1 = 1 AND ej687_ue.status = :ej687_active AND ej687_e.status = :ej687_enabled AND ej687_ue.timestart < :ej687_now1 AND (ej687_ue.timeend = 0 OR ej687_ue.timeend > :ej687_now2) AND eu687_u.deleted = 0 AND eu687_u.id <> :eu687_guestid AND gm687_gm2.userid IS NOT NULL AND eu687_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu688_u.id FROM {user} eu688_u JOIN {user_enrolments} ej688_ue ON ej688_ue.userid = eu688_u.id JOIN {enrol} ej688_e ON (ej688_e.id = ej688_ue.enrolid AND ej688_e.courseid = :ej688_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu688_u.id LEFT JOIN {groups_members} gm688_gm2 ON (gm688_gm2.userid = eu688_u.id AND gm688_gm2.groupid = :gm688_4128) WHERE 1 = 1 AND ej688_ue.status = :ej688_active AND ej688_e.status = :ej688_enabled AND ej688_ue.timestart < :ej688_now1 AND (ej688_ue.timeend = 0 OR ej688_ue.timeend > :ej688_now2) AND eu688_u.deleted = 0 AND eu688_u.id <> :eu688_guestid AND gm688_gm2.userid IS NOT NULL AND eu688_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu689_u.id FROM {user} eu689_u JOIN {user_enrolments} ej689_ue ON ej689_ue.userid = eu689_u.id JOIN {enrol} ej689_e ON (ej689_e.id = ej689_ue.enrolid AND ej689_e.courseid = :ej689_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu689_u.id LEFT JOIN {groups_members} gm689_gm2 ON (gm689_gm2.userid = eu689_u.id AND gm689_gm2.groupid = :gm689_4134) WHERE 1 = 1 AND ej689_ue.status = :ej689_active AND ej689_e.status = :ej689_enabled AND ej689_ue.timestart < :ej689_now1 AND (ej689_ue.timeend = 0 OR ej689_ue.timeend > :ej689_now2) AND eu689_u.deleted = 0 AND eu689_u.id <> :eu689_guestid AND gm689_gm2.userid IS NOT NULL AND eu689_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu690_u.id FROM {user} eu690_u JOIN {user_enrolments} ej690_ue ON ej690_ue.userid = eu690_u.id JOIN {enrol} ej690_e ON (ej690_e.id = ej690_ue.enrolid AND ej690_e.courseid = :ej690_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu690_u.id LEFT JOIN {groups_members} gm690_gm2 ON (gm690_gm2.userid = eu690_u.id AND gm690_gm2.groupid = :gm690_4140) WHERE 1 = 1 AND ej690_ue.status = :ej690_active AND ej690_e.status = :ej690_enabled AND ej690_ue.timestart < :ej690_now1 AND (ej690_ue.timeend = 0 OR ej690_ue.timeend > :ej690_now2) AND eu690_u.deleted = 0 AND eu690_u.id <> :eu690_guestid AND gm690_gm2.userid IS NOT NULL AND eu690_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu691_u.id FROM {user} eu691_u JOIN {user_enrolments} ej691_ue ON ej691_ue.userid = eu691_u.id JOIN {enrol} ej691_e ON (ej691_e.id = ej691_ue.enrolid AND ej691_e.courseid = :ej691_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu691_u.id LEFT JOIN {groups_members} gm691_gm2 ON (gm691_gm2.userid = eu691_u.id AND gm691_gm2.groupid = :gm691_4146) WHERE 1 = 1 AND ej691_ue.status = :ej691_active AND ej691_e.status = :ej691_enabled AND ej691_ue.timestart < :ej691_now1 AND (ej691_ue.timeend = 0 OR ej691_ue.timeend > :ej691_now2) AND eu691_u.deleted = 0 AND eu691_u.id <> :eu691_guestid AND gm691_gm2.userid IS NOT NULL AND eu691_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu692_u.id FROM {user} eu692_u JOIN {user_enrolments} ej692_ue ON ej692_ue.userid = eu692_u.id JOIN {enrol} ej692_e ON (ej692_e.id = ej692_ue.enrolid AND ej692_e.courseid = :ej692_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu692_u.id LEFT JOIN {groups_members} gm692_gm2 ON (gm692_gm2.userid = eu692_u.id AND gm692_gm2.groupid = :gm692_4152) WHERE 1 = 1 AND ej692_ue.status = :ej692_active AND ej692_e.status = :ej692_enabled AND ej692_ue.timestart < :ej692_now1 AND (ej692_ue.timeend = 0 OR ej692_ue.timeend > :ej692_now2) AND eu692_u.deleted = 0 AND eu692_u.id <> :eu692_guestid AND gm692_gm2.userid IS NOT NULL AND eu692_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu693_u.id FROM {user} eu693_u JOIN {user_enrolments} ej693_ue ON ej693_ue.userid = eu693_u.id JOIN {enrol} ej693_e ON (ej693_e.id = ej693_ue.enrolid AND ej693_e.courseid = :ej693_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu693_u.id LEFT JOIN {groups_members} gm693_gm2 ON (gm693_gm2.userid = eu693_u.id AND gm693_gm2.groupid = :gm693_4158) WHERE 1 = 1 AND ej693_ue.status = :ej693_active AND ej693_e.status = :ej693_enabled AND ej693_ue.timestart < :ej693_now1 AND (ej693_ue.timeend = 0 OR ej693_ue.timeend > :ej693_now2) AND eu693_u.deleted = 0 AND eu693_u.id <> :eu693_guestid AND gm693_gm2.userid IS NOT NULL AND eu693_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu694_u.id FROM {user} eu694_u JOIN {user_enrolments} ej694_ue ON ej694_ue.userid = eu694_u.id JOIN {enrol} ej694_e ON (ej694_e.id = ej694_ue.enrolid AND ej694_e.courseid = :ej694_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu694_u.id LEFT JOIN {groups_members} gm694_gm2 ON (gm694_gm2.userid = eu694_u.id AND gm694_gm2.groupid = :gm694_4164) WHERE 1 = 1 AND ej694_ue.status = :ej694_active AND ej694_e.status = :ej694_enabled AND ej694_ue.timestart < :ej694_now1 AND (ej694_ue.timeend = 0 OR ej694_ue.timeend > :ej694_now2) AND eu694_u.deleted = 0 AND eu694_u.id <> :eu694_guestid AND gm694_gm2.userid IS NOT NULL AND eu694_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu695_u.id FROM {user} eu695_u JOIN {user_enrolments} ej695_ue ON ej695_ue.userid = eu695_u.id JOIN {enrol} ej695_e ON (ej695_e.id = ej695_ue.enrolid AND ej695_e.courseid = :ej695_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu695_u.id LEFT JOIN {groups_members} gm695_gm2 ON (gm695_gm2.userid = eu695_u.id AND gm695_gm2.groupid = :gm695_4170) WHERE 1 = 1 AND ej695_ue.status = :ej695_active AND ej695_e.status = :ej695_enabled AND ej695_ue.timestart < :ej695_now1 AND (ej695_ue.timeend = 0 OR ej695_ue.timeend > :ej695_now2) AND eu695_u.deleted = 0 AND eu695_u.id <> :eu695_guestid AND gm695_gm2.userid IS NOT NULL AND eu695_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu696_u.id FROM {user} eu696_u JOIN {user_enrolments} ej696_ue ON ej696_ue.userid = eu696_u.id JOIN {enrol} ej696_e ON (ej696_e.id = ej696_ue.enrolid AND ej696_e.courseid = :ej696_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu696_u.id LEFT JOIN {groups_members} gm696_gm2 ON (gm696_gm2.userid = eu696_u.id AND gm696_gm2.groupid = :gm696_4176) WHERE 1 = 1 AND ej696_ue.status = :ej696_active AND ej696_e.status = :ej696_enabled AND ej696_ue.timestart < :ej696_now1 AND (ej696_ue.timeend = 0 OR ej696_ue.timeend > :ej696_now2) AND eu696_u.deleted = 0 AND eu696_u.id <> :eu696_guestid AND gm696_gm2.userid IS NOT NULL AND eu696_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu697_u.id FROM {user} eu697_u JOIN {user_enrolments} ej697_ue ON ej697_ue.userid = eu697_u.id JOIN {enrol} ej697_e ON (ej697_e.id = ej697_ue.enrolid AND ej697_e.courseid = :ej697_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu697_u.id LEFT JOIN {groups_members} gm697_gm2 ON (gm697_gm2.userid = eu697_u.id AND gm697_gm2.groupid = :gm697_4182) WHERE 1 = 1 AND ej697_ue.status = :ej697_active AND ej697_e.status = :ej697_enabled AND ej697_ue.timestart < :ej697_now1 AND (ej697_ue.timeend = 0 OR ej697_ue.timeend > :ej697_now2) AND eu697_u.deleted = 0 AND eu697_u.id <> :eu697_guestid AND gm697_gm2.userid IS NOT NULL AND eu697_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu698_u.id FROM {user} eu698_u JOIN {user_enrolments} ej698_ue ON ej698_ue.userid = eu698_u.id JOIN {enrol} ej698_e ON (ej698_e.id = ej698_ue.enrolid AND ej698_e.courseid = :ej698_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu698_u.id LEFT JOIN {groups_members} gm698_gm2 ON (gm698_gm2.userid = eu698_u.id AND gm698_gm2.groupid = :gm698_4188) WHERE 1 = 1 AND ej698_ue.status = :ej698_active AND ej698_e.status = :ej698_enabled AND ej698_ue.timestart < :ej698_now1 AND (ej698_ue.timeend = 0 OR ej698_ue.timeend > :ej698_now2) AND eu698_u.deleted = 0 AND eu698_u.id <> :eu698_guestid AND gm698_gm2.userid IS NOT NULL AND eu698_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu699_u.id FROM {user} eu699_u JOIN {user_enrolments} ej699_ue ON ej699_ue.userid = eu699_u.id JOIN {enrol} ej699_e ON (ej699_e.id = ej699_ue.enrolid AND ej699_e.courseid = :ej699_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu699_u.id LEFT JOIN {groups_members} gm699_gm2 ON (gm699_gm2.userid = eu699_u.id AND gm699_gm2.groupid = :gm699_4194) WHERE 1 = 1 AND ej699_ue.status = :ej699_active AND ej699_e.status = :ej699_enabled AND ej699_ue.timestart < :ej699_now1 AND (ej699_ue.timeend = 0 OR ej699_ue.timeend > :ej699_now2) AND eu699_u.deleted = 0 AND eu699_u.id <> :eu699_guestid AND gm699_gm2.userid IS NOT NULL AND eu699_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu700_u.id FROM {user} eu700_u JOIN {user_enrolments} ej700_ue ON ej700_ue.userid = eu700_u.id JOIN {enrol} ej700_e ON (ej700_e.id = ej700_ue.enrolid AND ej700_e.courseid = :ej700_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu700_u.id LEFT JOIN {groups_members} gm700_gm2 ON (gm700_gm2.userid = eu700_u.id AND gm700_gm2.groupid = :gm700_4200) WHERE 1 = 1 AND ej700_ue.status = :ej700_active AND ej700_e.status = :ej700_enabled AND ej700_ue.timestart < :ej700_now1 AND (ej700_ue.timeend = 0 OR ej700_ue.timeend > :ej700_now2) AND eu700_u.deleted = 0 AND eu700_u.id <> :eu700_guestid AND gm700_gm2.userid IS NOT NULL AND eu700_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu701_u.id FROM {user} eu701_u JOIN {user_enrolments} ej701_ue ON ej701_ue.userid = eu701_u.id JOIN {enrol} ej701_e ON (ej701_e.id = ej701_ue.enrolid AND ej701_e.courseid = :ej701_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu701_u.id LEFT JOIN {groups_members} gm701_gm2 ON (gm701_gm2.userid = eu701_u.id AND gm701_gm2.groupid = :gm701_4206) WHERE 1 = 1 AND ej701_ue.status = :ej701_active AND ej701_e.status = :ej701_enabled AND ej701_ue.timestart < :ej701_now1 AND (ej701_ue.timeend = 0 OR ej701_ue.timeend > :ej701_now2) AND eu701_u.deleted = 0 AND eu701_u.id <> :eu701_guestid AND gm701_gm2.userid IS NOT NULL AND eu701_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu702_u.id FROM {user} eu702_u JOIN {user_enrolments} ej702_ue ON ej702_ue.userid = eu702_u.id JOIN {enrol} ej702_e ON (ej702_e.id = ej702_ue.enrolid AND ej702_e.courseid = :ej702_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu702_u.id LEFT JOIN {groups_members} gm702_gm2 ON (gm702_gm2.userid = eu702_u.id AND gm702_gm2.groupid = :gm702_4212) WHERE 1 = 1 AND ej702_ue.status = :ej702_active AND ej702_e.status = :ej702_enabled AND ej702_ue.timestart < :ej702_now1 AND (ej702_ue.timeend = 0 OR ej702_ue.timeend > :ej702_now2) AND eu702_u.deleted = 0 AND eu702_u.id <> :eu702_guestid AND gm702_gm2.userid IS NOT NULL AND eu702_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu703_u.id FROM {user} eu703_u JOIN {user_enrolments} ej703_ue ON ej703_ue.userid = eu703_u.id JOIN {enrol} ej703_e ON (ej703_e.id = ej703_ue.enrolid AND ej703_e.courseid = :ej703_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu703_u.id LEFT JOIN {groups_members} gm703_gm2 ON (gm703_gm2.userid = eu703_u.id AND gm703_gm2.groupid = :gm703_4218) WHERE 1 = 1 AND ej703_ue.status = :ej703_active AND ej703_e.status = :ej703_enabled AND ej703_ue.timestart < :ej703_now1 AND (ej703_ue.timeend = 0 OR ej703_ue.timeend > :ej703_now2) AND eu703_u.deleted = 0 AND eu703_u.id <> :eu703_guestid AND gm703_gm2.userid IS NOT NULL AND eu703_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu704_u.id FROM {user} eu704_u JOIN {user_enrolments} ej704_ue ON ej704_ue.userid = eu704_u.id JOIN {enrol} ej704_e ON (ej704_e.id = ej704_ue.enrolid AND ej704_e.courseid = :ej704_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu704_u.id LEFT JOIN {groups_members} gm704_gm2 ON (gm704_gm2.userid = eu704_u.id AND gm704_gm2.groupid = :gm704_4224) WHERE 1 = 1 AND ej704_ue.status = :ej704_active AND ej704_e.status = :ej704_enabled AND ej704_ue.timestart < :ej704_now1 AND (ej704_ue.timeend = 0 OR ej704_ue.timeend > :ej704_now2) AND eu704_u.deleted = 0 AND eu704_u.id <> :eu704_guestid AND gm704_gm2.userid IS NOT NULL AND eu704_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu705_u.id FROM {user} eu705_u JOIN {user_enrolments} ej705_ue ON ej705_ue.userid = eu705_u.id JOIN {enrol} ej705_e ON (ej705_e.id = ej705_ue.enrolid AND ej705_e.courseid = :ej705_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu705_u.id LEFT JOIN {groups_members} gm705_gm2 ON (gm705_gm2.userid = eu705_u.id AND gm705_gm2.groupid = :gm705_4230) WHERE 1 = 1 AND ej705_ue.status = :ej705_active AND ej705_e.status = :ej705_enabled AND ej705_ue.timestart < :ej705_now1 AND (ej705_ue.timeend = 0 OR ej705_ue.timeend > :ej705_now2) AND eu705_u.deleted = 0 AND eu705_u.id <> :eu705_guestid AND gm705_gm2.userid IS NOT NULL AND eu705_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu706_u.id FROM {user} eu706_u JOIN {user_enrolments} ej706_ue ON ej706_ue.userid = eu706_u.id JOIN {enrol} ej706_e ON (ej706_e.id = ej706_ue.enrolid AND ej706_e.courseid = :ej706_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu706_u.id LEFT JOIN {groups_members} gm706_gm2 ON (gm706_gm2.userid = eu706_u.id AND gm706_gm2.groupid = :gm706_4236) WHERE 1 = 1 AND ej706_ue.status = :ej706_active AND ej706_e.status = :ej706_enabled AND ej706_ue.timestart < :ej706_now1 AND (ej706_ue.timeend = 0 OR ej706_ue.timeend > :ej706_now2) AND eu706_u.deleted = 0 AND eu706_u.id <> :eu706_guestid AND gm706_gm2.userid IS NOT NULL AND eu706_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu707_u.id FROM {user} eu707_u JOIN {user_enrolments} ej707_ue ON ej707_ue.userid = eu707_u.id JOIN {enrol} ej707_e ON (ej707_e.id = ej707_ue.enrolid AND ej707_e.courseid = :ej707_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu707_u.id LEFT JOIN {groups_members} gm707_gm2 ON (gm707_gm2.userid = eu707_u.id AND gm707_gm2.groupid = :gm707_4242) WHERE 1 = 1 AND ej707_ue.status = :ej707_active AND ej707_e.status = :ej707_enabled AND ej707_ue.timestart < :ej707_now1 AND (ej707_ue.timeend = 0 OR ej707_ue.timeend > :ej707_now2) AND eu707_u.deleted = 0 AND eu707_u.id <> :eu707_guestid AND gm707_gm2.userid IS NOT NULL AND eu707_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu708_u.id FROM {user} eu708_u JOIN {user_enrolments} ej708_ue ON ej708_ue.userid = eu708_u.id JOIN {enrol} ej708_e ON (ej708_e.id = ej708_ue.enrolid AND ej708_e.courseid = :ej708_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu708_u.id LEFT JOIN {groups_members} gm708_gm2 ON (gm708_gm2.userid = eu708_u.id AND gm708_gm2.groupid = :gm708_4248) WHERE 1 = 1 AND ej708_ue.status = :ej708_active AND ej708_e.status = :ej708_enabled AND ej708_ue.timestart < :ej708_now1 AND (ej708_ue.timeend = 0 OR ej708_ue.timeend > :ej708_now2) AND eu708_u.deleted = 0 AND eu708_u.id <> :eu708_guestid AND gm708_gm2.userid IS NOT NULL AND eu708_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu709_u.id FROM {user} eu709_u JOIN {user_enrolments} ej709_ue ON ej709_ue.userid = eu709_u.id JOIN {enrol} ej709_e ON (ej709_e.id = ej709_ue.enrolid AND ej709_e.courseid = :ej709_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu709_u.id LEFT JOIN {groups_members} gm709_gm2 ON (gm709_gm2.userid = eu709_u.id AND gm709_gm2.groupid = :gm709_4254) WHERE 1 = 1 AND ej709_ue.status = :ej709_active AND ej709_e.status = :ej709_enabled AND ej709_ue.timestart < :ej709_now1 AND (ej709_ue.timeend = 0 OR ej709_ue.timeend > :ej709_now2) AND eu709_u.deleted = 0 AND eu709_u.id <> :eu709_guestid AND gm709_gm2.userid IS NOT NULL AND eu709_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu710_u.id FROM {user} eu710_u JOIN {user_enrolments} ej710_ue ON ej710_ue.userid = eu710_u.id JOIN {enrol} ej710_e ON (ej710_e.id = ej710_ue.enrolid AND ej710_e.courseid = :ej710_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu710_u.id LEFT JOIN {groups_members} gm710_gm2 ON (gm710_gm2.userid = eu710_u.id AND gm710_gm2.groupid = :gm710_4260) WHERE 1 = 1 AND ej710_ue.status = :ej710_active AND ej710_e.status = :ej710_enabled AND ej710_ue.timestart < :ej710_now1 AND (ej710_ue.timeend = 0 OR ej710_ue.timeend > :ej710_now2) AND eu710_u.deleted = 0 AND eu710_u.id <> :eu710_guestid AND gm710_gm2.userid IS NOT NULL AND eu710_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu711_u.id FROM {user} eu711_u JOIN {user_enrolments} ej711_ue ON ej711_ue.userid = eu711_u.id JOIN {enrol} ej711_e ON (ej711_e.id = ej711_ue.enrolid AND ej711_e.courseid = :ej711_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu711_u.id LEFT JOIN {groups_members} gm711_gm2 ON (gm711_gm2.userid = eu711_u.id AND gm711_gm2.groupid = :gm711_4266) WHERE 1 = 1 AND ej711_ue.status = :ej711_active AND ej711_e.status = :ej711_enabled AND ej711_ue.timestart < :ej711_now1 AND (ej711_ue.timeend = 0 OR ej711_ue.timeend > :ej711_now2) AND eu711_u.deleted = 0 AND eu711_u.id <> :eu711_guestid AND gm711_gm2.userid IS NOT NULL AND eu711_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu712_u.id FROM {user} eu712_u JOIN {user_enrolments} ej712_ue ON ej712_ue.userid = eu712_u.id JOIN {enrol} ej712_e ON (ej712_e.id = ej712_ue.enrolid AND ej712_e.courseid = :ej712_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu712_u.id LEFT JOIN {groups_members} gm712_gm2 ON (gm712_gm2.userid = eu712_u.id AND gm712_gm2.groupid = :gm712_4272) WHERE 1 = 1 AND ej712_ue.status = :ej712_active AND ej712_e.status = :ej712_enabled AND ej712_ue.timestart < :ej712_now1 AND (ej712_ue.timeend = 0 OR ej712_ue.timeend > :ej712_now2) AND eu712_u.deleted = 0 AND eu712_u.id <> :eu712_guestid AND gm712_gm2.userid IS NOT NULL AND eu712_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu713_u.id FROM {user} eu713_u JOIN {user_enrolments} ej713_ue ON ej713_ue.userid = eu713_u.id JOIN {enrol} ej713_e ON (ej713_e.id = ej713_ue.enrolid AND ej713_e.courseid = :ej713_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu713_u.id LEFT JOIN {groups_members} gm713_gm2 ON (gm713_gm2.userid = eu713_u.id AND gm713_gm2.groupid = :gm713_4278) WHERE 1 = 1 AND ej713_ue.status = :ej713_active AND ej713_e.status = :ej713_enabled AND ej713_ue.timestart < :ej713_now1 AND (ej713_ue.timeend = 0 OR ej713_ue.timeend > :ej713_now2) AND eu713_u.deleted = 0 AND eu713_u.id <> :eu713_guestid AND gm713_gm2.userid IS NOT NULL AND eu713_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu714_u.id FROM {user} eu714_u JOIN {user_enrolments} ej714_ue ON ej714_ue.userid = eu714_u.id JOIN {enrol} ej714_e ON (ej714_e.id = ej714_ue.enrolid AND ej714_e.courseid = :ej714_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu714_u.id LEFT JOIN {groups_members} gm714_gm2 ON (gm714_gm2.userid = eu714_u.id AND gm714_gm2.groupid = :gm714_4284) WHERE 1 = 1 AND ej714_ue.status = :ej714_active AND ej714_e.status = :ej714_enabled AND ej714_ue.timestart < :ej714_now1 AND (ej714_ue.timeend = 0 OR ej714_ue.timeend > :ej714_now2) AND eu714_u.deleted = 0 AND eu714_u.id <> :eu714_guestid AND gm714_gm2.userid IS NOT NULL AND eu714_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu715_u.id FROM {user} eu715_u JOIN {user_enrolments} ej715_ue ON ej715_ue.userid = eu715_u.id JOIN {enrol} ej715_e ON (ej715_e.id = ej715_ue.enrolid AND ej715_e.courseid = :ej715_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu715_u.id LEFT JOIN {groups_members} gm715_gm2 ON (gm715_gm2.userid = eu715_u.id AND gm715_gm2.groupid = :gm715_4290) WHERE 1 = 1 AND ej715_ue.status = :ej715_active AND ej715_e.status = :ej715_enabled AND ej715_ue.timestart < :ej715_now1 AND (ej715_ue.timeend = 0 OR ej715_ue.timeend > :ej715_now2) AND eu715_u.deleted = 0 AND eu715_u.id <> :eu715_guestid AND gm715_gm2.userid IS NOT NULL AND eu715_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu716_u.id FROM {user} eu716_u JOIN {user_enrolments} ej716_ue ON ej716_ue.userid = eu716_u.id JOIN {enrol} ej716_e ON (ej716_e.id = ej716_ue.enrolid AND ej716_e.courseid = :ej716_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu716_u.id LEFT JOIN {groups_members} gm716_gm2 ON (gm716_gm2.userid = eu716_u.id AND gm716_gm2.groupid = :gm716_4296) WHERE 1 = 1 AND ej716_ue.status = :ej716_active AND ej716_e.status = :ej716_enabled AND ej716_ue.timestart < :ej716_now1 AND (ej716_ue.timeend = 0 OR ej716_ue.timeend > :ej716_now2) AND eu716_u.deleted = 0 AND eu716_u.id <> :eu716_guestid AND gm716_gm2.userid IS NOT NULL AND eu716_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu717_u.id FROM {user} eu717_u JOIN {user_enrolments} ej717_ue ON ej717_ue.userid = eu717_u.id JOIN {enrol} ej717_e ON (ej717_e.id = ej717_ue.enrolid AND ej717_e.courseid = :ej717_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu717_u.id LEFT JOIN {groups_members} gm717_gm2 ON (gm717_gm2.userid = eu717_u.id AND gm717_gm2.groupid = :gm717_4302) WHERE 1 = 1 AND ej717_ue.status = :ej717_active AND ej717_e.status = :ej717_enabled AND ej717_ue.timestart < :ej717_now1 AND (ej717_ue.timeend = 0 OR ej717_ue.timeend > :ej717_now2) AND eu717_u.deleted = 0 AND eu717_u.id <> :eu717_guestid AND gm717_gm2.userid IS NOT NULL AND eu717_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu718_u.id FROM {user} eu718_u JOIN {user_enrolments} ej718_ue ON ej718_ue.userid = eu718_u.id JOIN {enrol} ej718_e ON (ej718_e.id = ej718_ue.enrolid AND ej718_e.courseid = :ej718_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu718_u.id LEFT JOIN {groups_members} gm718_gm2 ON (gm718_gm2.userid = eu718_u.id AND gm718_gm2.groupid = :gm718_4308) WHERE 1 = 1 AND ej718_ue.status = :ej718_active AND ej718_e.status = :ej718_enabled AND ej718_ue.timestart < :ej718_now1 AND (ej718_ue.timeend = 0 OR ej718_ue.timeend > :ej718_now2) AND eu718_u.deleted = 0 AND eu718_u.id <> :eu718_guestid AND gm718_gm2.userid IS NOT NULL AND eu718_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu719_u.id FROM {user} eu719_u JOIN {user_enrolments} ej719_ue ON ej719_ue.userid = eu719_u.id JOIN {enrol} ej719_e ON (ej719_e.id = ej719_ue.enrolid AND ej719_e.courseid = :ej719_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu719_u.id LEFT JOIN {groups_members} gm719_gm2 ON (gm719_gm2.userid = eu719_u.id AND gm719_gm2.groupid = :gm719_4314) WHERE 1 = 1 AND ej719_ue.status = :ej719_active AND ej719_e.status = :ej719_enabled AND ej719_ue.timestart < :ej719_now1 AND (ej719_ue.timeend = 0 OR ej719_ue.timeend > :ej719_now2) AND eu719_u.deleted = 0 AND eu719_u.id <> :eu719_guestid AND gm719_gm2.userid IS NOT NULL AND eu719_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu720_u.id FROM {user} eu720_u JOIN {user_enrolments} ej720_ue ON ej720_ue.userid = eu720_u.id JOIN {enrol} ej720_e ON (ej720_e.id = ej720_ue.enrolid AND ej720_e.courseid = :ej720_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu720_u.id LEFT JOIN {groups_members} gm720_gm2 ON (gm720_gm2.userid = eu720_u.id AND gm720_gm2.groupid = :gm720_4320) WHERE 1 = 1 AND ej720_ue.status = :ej720_active AND ej720_e.status = :ej720_enabled AND ej720_ue.timestart < :ej720_now1 AND (ej720_ue.timeend = 0 OR ej720_ue.timeend > :ej720_now2) AND eu720_u.deleted = 0 AND eu720_u.id <> :eu720_guestid AND gm720_gm2.userid IS NOT NULL AND eu720_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu721_u.id FROM {user} eu721_u JOIN {user_enrolments} ej721_ue ON ej721_ue.userid = eu721_u.id JOIN {enrol} ej721_e ON (ej721_e.id = ej721_ue.enrolid AND ej721_e.courseid = :ej721_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu721_u.id LEFT JOIN {groups_members} gm721_gm2 ON (gm721_gm2.userid = eu721_u.id AND gm721_gm2.groupid = :gm721_4326) WHERE 1 = 1 AND ej721_ue.status = :ej721_active AND ej721_e.status = :ej721_enabled AND ej721_ue.timestart < :ej721_now1 AND (ej721_ue.timeend = 0 OR ej721_ue.timeend > :ej721_now2) AND eu721_u.deleted = 0 AND eu721_u.id <> :eu721_guestid AND gm721_gm2.userid IS NOT NULL AND eu721_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu722_u.id FROM {user} eu722_u JOIN {user_enrolments} ej722_ue ON ej722_ue.userid = eu722_u.id JOIN {enrol} ej722_e ON (ej722_e.id = ej722_ue.enrolid AND ej722_e.courseid = :ej722_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu722_u.id LEFT JOIN {groups_members} gm722_gm2 ON (gm722_gm2.userid = eu722_u.id AND gm722_gm2.groupid = :gm722_4332) WHERE 1 = 1 AND ej722_ue.status = :ej722_active AND ej722_e.status = :ej722_enabled AND ej722_ue.timestart < :ej722_now1 AND (ej722_ue.timeend = 0 OR ej722_ue.timeend > :ej722_now2) AND eu722_u.deleted = 0 AND eu722_u.id <> :eu722_guestid AND gm722_gm2.userid IS NOT NULL AND eu722_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu723_u.id FROM {user} eu723_u JOIN {user_enrolments} ej723_ue ON ej723_ue.userid = eu723_u.id JOIN {enrol} ej723_e ON (ej723_e.id = ej723_ue.enrolid AND ej723_e.courseid = :ej723_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu723_u.id LEFT JOIN {groups_members} gm723_gm2 ON (gm723_gm2.userid = eu723_u.id AND gm723_gm2.groupid = :gm723_4338) WHERE 1 = 1 AND ej723_ue.status = :ej723_active AND ej723_e.status = :ej723_enabled AND ej723_ue.timestart < :ej723_now1 AND (ej723_ue.timeend = 0 OR ej723_ue.timeend > :ej723_now2) AND eu723_u.deleted = 0 AND eu723_u.id <> :eu723_guestid AND gm723_gm2.userid IS NOT NULL AND eu723_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu724_u.id FROM {user} eu724_u JOIN {user_enrolments} ej724_ue ON ej724_ue.userid = eu724_u.id JOIN {enrol} ej724_e ON (ej724_e.id = ej724_ue.enrolid AND ej724_e.courseid = :ej724_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu724_u.id LEFT JOIN {groups_members} gm724_gm2 ON (gm724_gm2.userid = eu724_u.id AND gm724_gm2.groupid = :gm724_4344) WHERE 1 = 1 AND ej724_ue.status = :ej724_active AND ej724_e.status = :ej724_enabled AND ej724_ue.timestart < :ej724_now1 AND (ej724_ue.timeend = 0 OR ej724_ue.timeend > :ej724_now2) AND eu724_u.deleted = 0 AND eu724_u.id <> :eu724_guestid AND gm724_gm2.userid IS NOT NULL AND eu724_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu725_u.id FROM {user} eu725_u JOIN {user_enrolments} ej725_ue ON ej725_ue.userid = eu725_u.id JOIN {enrol} ej725_e ON (ej725_e.id = ej725_ue.enrolid AND ej725_e.courseid = :ej725_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu725_u.id LEFT JOIN {groups_members} gm725_gm2 ON (gm725_gm2.userid = eu725_u.id AND gm725_gm2.groupid = :gm725_4350) WHERE 1 = 1 AND ej725_ue.status = :ej725_active AND ej725_e.status = :ej725_enabled AND ej725_ue.timestart < :ej725_now1 AND (ej725_ue.timeend = 0 OR ej725_ue.timeend > :ej725_now2) AND eu725_u.deleted = 0 AND eu725_u.id <> :eu725_guestid AND gm725_gm2.userid IS NOT NULL AND eu725_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu726_u.id FROM {user} eu726_u JOIN {user_enrolments} ej726_ue ON ej726_ue.userid = eu726_u.id JOIN {enrol} ej726_e ON (ej726_e.id = ej726_ue.enrolid AND ej726_e.courseid = :ej726_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu726_u.id LEFT JOIN {groups_members} gm726_gm2 ON (gm726_gm2.userid = eu726_u.id AND gm726_gm2.groupid = :gm726_4356) WHERE 1 = 1 AND ej726_ue.status = :ej726_active AND ej726_e.status = :ej726_enabled AND ej726_ue.timestart < :ej726_now1 AND (ej726_ue.timeend = 0 OR ej726_ue.timeend > :ej726_now2) AND eu726_u.deleted = 0 AND eu726_u.id <> :eu726_guestid AND gm726_gm2.userid IS NOT NULL AND eu726_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu727_u.id FROM {user} eu727_u JOIN {user_enrolments} ej727_ue ON ej727_ue.userid = eu727_u.id JOIN {enrol} ej727_e ON (ej727_e.id = ej727_ue.enrolid AND ej727_e.courseid = :ej727_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu727_u.id LEFT JOIN {groups_members} gm727_gm2 ON (gm727_gm2.userid = eu727_u.id AND gm727_gm2.groupid = :gm727_4362) WHERE 1 = 1 AND ej727_ue.status = :ej727_active AND ej727_e.status = :ej727_enabled AND ej727_ue.timestart < :ej727_now1 AND (ej727_ue.timeend = 0 OR ej727_ue.timeend > :ej727_now2) AND eu727_u.deleted = 0 AND eu727_u.id <> :eu727_guestid AND gm727_gm2.userid IS NOT NULL AND eu727_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu728_u.id FROM {user} eu728_u JOIN {user_enrolments} ej728_ue ON ej728_ue.userid = eu728_u.id JOIN {enrol} ej728_e ON (ej728_e.id = ej728_ue.enrolid AND ej728_e.courseid = :ej728_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu728_u.id LEFT JOIN {groups_members} gm728_gm2 ON (gm728_gm2.userid = eu728_u.id AND gm728_gm2.groupid = :gm728_4368) WHERE 1 = 1 AND ej728_ue.status = :ej728_active AND ej728_e.status = :ej728_enabled AND ej728_ue.timestart < :ej728_now1 AND (ej728_ue.timeend = 0 OR ej728_ue.timeend > :ej728_now2) AND eu728_u.deleted = 0 AND eu728_u.id <> :eu728_guestid AND gm728_gm2.userid IS NOT NULL AND eu728_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu729_u.id FROM {user} eu729_u JOIN {user_enrolments} ej729_ue ON ej729_ue.userid = eu729_u.id JOIN {enrol} ej729_e ON (ej729_e.id = ej729_ue.enrolid AND ej729_e.courseid = :ej729_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu729_u.id LEFT JOIN {groups_members} gm729_gm2 ON (gm729_gm2.userid = eu729_u.id AND gm729_gm2.groupid = :gm729_4374) WHERE 1 = 1 AND ej729_ue.status = :ej729_active AND ej729_e.status = :ej729_enabled AND ej729_ue.timestart < :ej729_now1 AND (ej729_ue.timeend = 0 OR ej729_ue.timeend > :ej729_now2) AND eu729_u.deleted = 0 AND eu729_u.id <> :eu729_guestid AND gm729_gm2.userid IS NOT NULL AND eu729_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu730_u.id FROM {user} eu730_u JOIN {user_enrolments} ej730_ue ON ej730_ue.userid = eu730_u.id JOIN {enrol} ej730_e ON (ej730_e.id = ej730_ue.enrolid AND ej730_e.courseid = :ej730_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu730_u.id LEFT JOIN {groups_members} gm730_gm2 ON (gm730_gm2.userid = eu730_u.id AND gm730_gm2.groupid = :gm730_4380) WHERE 1 = 1 AND ej730_ue.status = :ej730_active AND ej730_e.status = :ej730_enabled AND ej730_ue.timestart < :ej730_now1 AND (ej730_ue.timeend = 0 OR ej730_ue.timeend > :ej730_now2) AND eu730_u.deleted = 0 AND eu730_u.id <> :eu730_guestid AND gm730_gm2.userid IS NOT NULL AND eu730_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu731_u.id FROM {user} eu731_u JOIN {user_enrolments} ej731_ue ON ej731_ue.userid = eu731_u.id JOIN {enrol} ej731_e ON (ej731_e.id = ej731_ue.enrolid AND ej731_e.courseid = :ej731_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu731_u.id LEFT JOIN {groups_members} gm731_gm2 ON (gm731_gm2.userid = eu731_u.id AND gm731_gm2.groupid = :gm731_4386) WHERE 1 = 1 AND ej731_ue.status = :ej731_active AND ej731_e.status = :ej731_enabled AND ej731_ue.timestart < :ej731_now1 AND (ej731_ue.timeend = 0 OR ej731_ue.timeend > :ej731_now2) AND eu731_u.deleted = 0 AND eu731_u.id <> :eu731_guestid AND gm731_gm2.userid IS NOT NULL AND eu731_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu732_u.id FROM {user} eu732_u JOIN {user_enrolments} ej732_ue ON ej732_ue.userid = eu732_u.id JOIN {enrol} ej732_e ON (ej732_e.id = ej732_ue.enrolid AND ej732_e.courseid = :ej732_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu732_u.id LEFT JOIN {groups_members} gm732_gm2 ON (gm732_gm2.userid = eu732_u.id AND gm732_gm2.groupid = :gm732_4392) WHERE 1 = 1 AND ej732_ue.status = :ej732_active AND ej732_e.status = :ej732_enabled AND ej732_ue.timestart < :ej732_now1 AND (ej732_ue.timeend = 0 OR ej732_ue.timeend > :ej732_now2) AND eu732_u.deleted = 0 AND eu732_u.id <> :eu732_guestid AND gm732_gm2.userid IS NOT NULL AND eu732_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu733_u.id FROM {user} eu733_u JOIN {user_enrolments} ej733_ue ON ej733_ue.userid = eu733_u.id JOIN {enrol} ej733_e ON (ej733_e.id = ej733_ue.enrolid AND ej733_e.courseid = :ej733_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu733_u.id LEFT JOIN {groups_members} gm733_gm2 ON (gm733_gm2.userid = eu733_u.id AND gm733_gm2.groupid = :gm733_4398) WHERE 1 = 1 AND ej733_ue.status = :ej733_active AND ej733_e.status = :ej733_enabled AND ej733_ue.timestart < :ej733_now1 AND (ej733_ue.timeend = 0 OR ej733_ue.timeend > :ej733_now2) AND eu733_u.deleted = 0 AND eu733_u.id <> :eu733_guestid AND gm733_gm2.userid IS NOT NULL AND eu733_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu734_u.id FROM {user} eu734_u JOIN {user_enrolments} ej734_ue ON ej734_ue.userid = eu734_u.id JOIN {enrol} ej734_e ON (ej734_e.id = ej734_ue.enrolid AND ej734_e.courseid = :ej734_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu734_u.id LEFT JOIN {groups_members} gm734_gm2 ON (gm734_gm2.userid = eu734_u.id AND gm734_gm2.groupid = :gm734_4404) WHERE 1 = 1 AND ej734_ue.status = :ej734_active AND ej734_e.status = :ej734_enabled AND ej734_ue.timestart < :ej734_now1 AND (ej734_ue.timeend = 0 OR ej734_ue.timeend > :ej734_now2) AND eu734_u.deleted = 0 AND eu734_u.id <> :eu734_guestid AND gm734_gm2.userid IS NOT NULL AND eu734_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu735_u.id FROM {user} eu735_u JOIN {user_enrolments} ej735_ue ON ej735_ue.userid = eu735_u.id JOIN {enrol} ej735_e ON (ej735_e.id = ej735_ue.enrolid AND ej735_e.courseid = :ej735_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu735_u.id LEFT JOIN {groups_members} gm735_gm2 ON (gm735_gm2.userid = eu735_u.id AND gm735_gm2.groupid = :gm735_4410) WHERE 1 = 1 AND ej735_ue.status = :ej735_active AND ej735_e.status = :ej735_enabled AND ej735_ue.timestart < :ej735_now1 AND (ej735_ue.timeend = 0 OR ej735_ue.timeend > :ej735_now2) AND eu735_u.deleted = 0 AND eu735_u.id <> :eu735_guestid AND gm735_gm2.userid IS NOT NULL AND eu735_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu736_u.id FROM {user} eu736_u JOIN {user_enrolments} ej736_ue ON ej736_ue.userid = eu736_u.id JOIN {enrol} ej736_e ON (ej736_e.id = ej736_ue.enrolid AND ej736_e.courseid = :ej736_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu736_u.id LEFT JOIN {groups_members} gm736_gm2 ON (gm736_gm2.userid = eu736_u.id AND gm736_gm2.groupid = :gm736_4416) WHERE 1 = 1 AND ej736_ue.status = :ej736_active AND ej736_e.status = :ej736_enabled AND ej736_ue.timestart < :ej736_now1 AND (ej736_ue.timeend = 0 OR ej736_ue.timeend > :ej736_now2) AND eu736_u.deleted = 0 AND eu736_u.id <> :eu736_guestid AND gm736_gm2.userid IS NOT NULL AND eu736_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu737_u.id FROM {user} eu737_u JOIN {user_enrolments} ej737_ue ON ej737_ue.userid = eu737_u.id JOIN {enrol} ej737_e ON (ej737_e.id = ej737_ue.enrolid AND ej737_e.courseid = :ej737_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu737_u.id LEFT JOIN {groups_members} gm737_gm2 ON (gm737_gm2.userid = eu737_u.id AND gm737_gm2.groupid = :gm737_4422) WHERE 1 = 1 AND ej737_ue.status = :ej737_active AND ej737_e.status = :ej737_enabled AND ej737_ue.timestart < :ej737_now1 AND (ej737_ue.timeend = 0 OR ej737_ue.timeend > :ej737_now2) AND eu737_u.deleted = 0 AND eu737_u.id <> :eu737_guestid AND gm737_gm2.userid IS NOT NULL AND eu737_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu738_u.id FROM {user} eu738_u JOIN {user_enrolments} ej738_ue ON ej738_ue.userid = eu738_u.id JOIN {enrol} ej738_e ON (ej738_e.id = ej738_ue.enrolid AND ej738_e.courseid = :ej738_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu738_u.id LEFT JOIN {groups_members} gm738_gm2 ON (gm738_gm2.userid = eu738_u.id AND gm738_gm2.groupid = :gm738_4428) WHERE 1 = 1 AND ej738_ue.status = :ej738_active AND ej738_e.status = :ej738_enabled AND ej738_ue.timestart < :ej738_now1 AND (ej738_ue.timeend = 0 OR ej738_ue.timeend > :ej738_now2) AND eu738_u.deleted = 0 AND eu738_u.id <> :eu738_guestid AND gm738_gm2.userid IS NOT NULL AND eu738_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu739_u.id FROM {user} eu739_u JOIN {user_enrolments} ej739_ue ON ej739_ue.userid = eu739_u.id JOIN {enrol} ej739_e ON (ej739_e.id = ej739_ue.enrolid AND ej739_e.courseid = :ej739_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu739_u.id LEFT JOIN {groups_members} gm739_gm2 ON (gm739_gm2.userid = eu739_u.id AND gm739_gm2.groupid = :gm739_4434) WHERE 1 = 1 AND ej739_ue.status = :ej739_active AND ej739_e.status = :ej739_enabled AND ej739_ue.timestart < :ej739_now1 AND (ej739_ue.timeend = 0 OR ej739_ue.timeend > :ej739_now2) AND eu739_u.deleted = 0 AND eu739_u.id <> :eu739_guestid AND gm739_gm2.userid IS NOT NULL AND eu739_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu740_u.id FROM {user} eu740_u JOIN {user_enrolments} ej740_ue ON ej740_ue.userid = eu740_u.id JOIN {enrol} ej740_e ON (ej740_e.id = ej740_ue.enrolid AND ej740_e.courseid = :ej740_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu740_u.id LEFT JOIN {groups_members} gm740_gm2 ON (gm740_gm2.userid = eu740_u.id AND gm740_gm2.groupid = :gm740_4440) WHERE 1 = 1 AND ej740_ue.status = :ej740_active AND ej740_e.status = :ej740_enabled AND ej740_ue.timestart < :ej740_now1 AND (ej740_ue.timeend = 0 OR ej740_ue.timeend > :ej740_now2) AND eu740_u.deleted = 0 AND eu740_u.id <> :eu740_guestid AND gm740_gm2.userid IS NOT NULL AND eu740_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu741_u.id FROM {user} eu741_u JOIN {user_enrolments} ej741_ue ON ej741_ue.userid = eu741_u.id JOIN {enrol} ej741_e ON (ej741_e.id = ej741_ue.enrolid AND ej741_e.courseid = :ej741_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu741_u.id LEFT JOIN {groups_members} gm741_gm2 ON (gm741_gm2.userid = eu741_u.id AND gm741_gm2.groupid = :gm741_4446) WHERE 1 = 1 AND ej741_ue.status = :ej741_active AND ej741_e.status = :ej741_enabled AND ej741_ue.timestart < :ej741_now1 AND (ej741_ue.timeend = 0 OR ej741_ue.timeend > :ej741_now2) AND eu741_u.deleted = 0 AND eu741_u.id <> :eu741_guestid AND gm741_gm2.userid IS NOT NULL AND eu741_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu742_u.id FROM {user} eu742_u JOIN {user_enrolments} ej742_ue ON ej742_ue.userid = eu742_u.id JOIN {enrol} ej742_e ON (ej742_e.id = ej742_ue.enrolid AND ej742_e.courseid = :ej742_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu742_u.id LEFT JOIN {groups_members} gm742_gm2 ON (gm742_gm2.userid = eu742_u.id AND gm742_gm2.groupid = :gm742_4452) WHERE 1 = 1 AND ej742_ue.status = :ej742_active AND ej742_e.status = :ej742_enabled AND ej742_ue.timestart < :ej742_now1 AND (ej742_ue.timeend = 0 OR ej742_ue.timeend > :ej742_now2) AND eu742_u.deleted = 0 AND eu742_u.id <> :eu742_guestid AND gm742_gm2.userid IS NOT NULL AND eu742_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu743_u.id FROM {user} eu743_u JOIN {user_enrolments} ej743_ue ON ej743_ue.userid = eu743_u.id JOIN {enrol} ej743_e ON (ej743_e.id = ej743_ue.enrolid AND ej743_e.courseid = :ej743_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu743_u.id LEFT JOIN {groups_members} gm743_gm2 ON (gm743_gm2.userid = eu743_u.id AND gm743_gm2.groupid = :gm743_4458) WHERE 1 = 1 AND ej743_ue.status = :ej743_active AND ej743_e.status = :ej743_enabled AND ej743_ue.timestart < :ej743_now1 AND (ej743_ue.timeend = 0 OR ej743_ue.timeend > :ej743_now2) AND eu743_u.deleted = 0 AND eu743_u.id <> :eu743_guestid AND gm743_gm2.userid IS NOT NULL AND eu743_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu744_u.id FROM {user} eu744_u JOIN {user_enrolments} ej744_ue ON ej744_ue.userid = eu744_u.id JOIN {enrol} ej744_e ON (ej744_e.id = ej744_ue.enrolid AND ej744_e.courseid = :ej744_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu744_u.id LEFT JOIN {groups_members} gm744_gm2 ON (gm744_gm2.userid = eu744_u.id AND gm744_gm2.groupid = :gm744_4464) WHERE 1 = 1 AND ej744_ue.status = :ej744_active AND ej744_e.status = :ej744_enabled AND ej744_ue.timestart < :ej744_now1 AND (ej744_ue.timeend = 0 OR ej744_ue.timeend > :ej744_now2) AND eu744_u.deleted = 0 AND eu744_u.id <> :eu744_guestid AND gm744_gm2.userid IS NOT NULL AND eu744_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu745_u.id FROM {user} eu745_u JOIN {user_enrolments} ej745_ue ON ej745_ue.userid = eu745_u.id JOIN {enrol} ej745_e ON (ej745_e.id = ej745_ue.enrolid AND ej745_e.courseid = :ej745_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu745_u.id LEFT JOIN {groups_members} gm745_gm2 ON (gm745_gm2.userid = eu745_u.id AND gm745_gm2.groupid = :gm745_4470) WHERE 1 = 1 AND ej745_ue.status = :ej745_active AND ej745_e.status = :ej745_enabled AND ej745_ue.timestart < :ej745_now1 AND (ej745_ue.timeend = 0 OR ej745_ue.timeend > :ej745_now2) AND eu745_u.deleted = 0 AND eu745_u.id <> :eu745_guestid AND gm745_gm2.userid IS NOT NULL AND eu745_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu746_u.id FROM {user} eu746_u JOIN {user_enrolments} ej746_ue ON ej746_ue.userid = eu746_u.id JOIN {enrol} ej746_e ON (ej746_e.id = ej746_ue.enrolid AND ej746_e.courseid = :ej746_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu746_u.id LEFT JOIN {groups_members} gm746_gm2 ON (gm746_gm2.userid = eu746_u.id AND gm746_gm2.groupid = :gm746_4476) WHERE 1 = 1 AND ej746_ue.status = :ej746_active AND ej746_e.status = :ej746_enabled AND ej746_ue.timestart < :ej746_now1 AND (ej746_ue.timeend = 0 OR ej746_ue.timeend > :ej746_now2) AND eu746_u.deleted = 0 AND eu746_u.id <> :eu746_guestid AND gm746_gm2.userid IS NOT NULL AND eu746_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu747_u.id FROM {user} eu747_u JOIN {user_enrolments} ej747_ue ON ej747_ue.userid = eu747_u.id JOIN {enrol} ej747_e ON (ej747_e.id = ej747_ue.enrolid AND ej747_e.courseid = :ej747_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu747_u.id LEFT JOIN {groups_members} gm747_gm2 ON (gm747_gm2.userid = eu747_u.id AND gm747_gm2.groupid = :gm747_4482) WHERE 1 = 1 AND ej747_ue.status = :ej747_active AND ej747_e.status = :ej747_enabled AND ej747_ue.timestart < :ej747_now1 AND (ej747_ue.timeend = 0 OR ej747_ue.timeend > :ej747_now2) AND eu747_u.deleted = 0 AND eu747_u.id <> :eu747_guestid AND gm747_gm2.userid IS NOT NULL AND eu747_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu748_u.id FROM {user} eu748_u JOIN {user_enrolments} ej748_ue ON ej748_ue.userid = eu748_u.id JOIN {enrol} ej748_e ON (ej748_e.id = ej748_ue.enrolid AND ej748_e.courseid = :ej748_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu748_u.id LEFT JOIN {groups_members} gm748_gm2 ON (gm748_gm2.userid = eu748_u.id AND gm748_gm2.groupid = :gm748_4488) WHERE 1 = 1 AND ej748_ue.status = :ej748_active AND ej748_e.status = :ej748_enabled AND ej748_ue.timestart < :ej748_now1 AND (ej748_ue.timeend = 0 OR ej748_ue.timeend > :ej748_now2) AND eu748_u.deleted = 0 AND eu748_u.id <> :eu748_guestid AND gm748_gm2.userid IS NOT NULL AND eu748_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu749_u.id FROM {user} eu749_u JOIN {user_enrolments} ej749_ue ON ej749_ue.userid = eu749_u.id JOIN {enrol} ej749_e ON (ej749_e.id = ej749_ue.enrolid AND ej749_e.courseid = :ej749_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu749_u.id LEFT JOIN {groups_members} gm749_gm2 ON (gm749_gm2.userid = eu749_u.id AND gm749_gm2.groupid = :gm749_4494) WHERE 1 = 1 AND ej749_ue.status = :ej749_active AND ej749_e.status = :ej749_enabled AND ej749_ue.timestart < :ej749_now1 AND (ej749_ue.timeend = 0 OR ej749_ue.timeend > :ej749_now2) AND eu749_u.deleted = 0 AND eu749_u.id <> :eu749_guestid AND gm749_gm2.userid IS NOT NULL AND eu749_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu750_u.id FROM {user} eu750_u JOIN {user_enrolments} ej750_ue ON ej750_ue.userid = eu750_u.id JOIN {enrol} ej750_e ON (ej750_e.id = ej750_ue.enrolid AND ej750_e.courseid = :ej750_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu750_u.id LEFT JOIN {groups_members} gm750_gm2 ON (gm750_gm2.userid = eu750_u.id AND gm750_gm2.groupid = :gm750_4500) WHERE 1 = 1 AND ej750_ue.status = :ej750_active AND ej750_e.status = :ej750_enabled AND ej750_ue.timestart < :ej750_now1 AND (ej750_ue.timeend = 0 OR ej750_ue.timeend > :ej750_now2) AND eu750_u.deleted = 0 AND eu750_u.id <> :eu750_guestid AND gm750_gm2.userid IS NOT NULL AND eu750_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu751_u.id FROM {user} eu751_u JOIN {user_enrolments} ej751_ue ON ej751_ue.userid = eu751_u.id JOIN {enrol} ej751_e ON (ej751_e.id = ej751_ue.enrolid AND ej751_e.courseid = :ej751_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu751_u.id LEFT JOIN {groups_members} gm751_gm2 ON (gm751_gm2.userid = eu751_u.id AND gm751_gm2.groupid = :gm751_4506) WHERE 1 = 1 AND ej751_ue.status = :ej751_active AND ej751_e.status = :ej751_enabled AND ej751_ue.timestart < :ej751_now1 AND (ej751_ue.timeend = 0 OR ej751_ue.timeend > :ej751_now2) AND eu751_u.deleted = 0 AND eu751_u.id <> :eu751_guestid AND gm751_gm2.userid IS NOT NULL AND eu751_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu752_u.id FROM {user} eu752_u JOIN {user_enrolments} ej752_ue ON ej752_ue.userid = eu752_u.id JOIN {enrol} ej752_e ON (ej752_e.id = ej752_ue.enrolid AND ej752_e.courseid = :ej752_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu752_u.id LEFT JOIN {groups_members} gm752_gm2 ON (gm752_gm2.userid = eu752_u.id AND gm752_gm2.groupid = :gm752_4512) WHERE 1 = 1 AND ej752_ue.status = :ej752_active AND ej752_e.status = :ej752_enabled AND ej752_ue.timestart < :ej752_now1 AND (ej752_ue.timeend = 0 OR ej752_ue.timeend > :ej752_now2) AND eu752_u.deleted = 0 AND eu752_u.id <> :eu752_guestid AND gm752_gm2.userid IS NOT NULL AND eu752_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu753_u.id FROM {user} eu753_u JOIN {user_enrolments} ej753_ue ON ej753_ue.userid = eu753_u.id JOIN {enrol} ej753_e ON (ej753_e.id = ej753_ue.enrolid AND ej753_e.courseid = :ej753_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu753_u.id LEFT JOIN {groups_members} gm753_gm2 ON (gm753_gm2.userid = eu753_u.id AND gm753_gm2.groupid = :gm753_4518) WHERE 1 = 1 AND ej753_ue.status = :ej753_active AND ej753_e.status = :ej753_enabled AND ej753_ue.timestart < :ej753_now1 AND (ej753_ue.timeend = 0 OR ej753_ue.timeend > :ej753_now2) AND eu753_u.deleted = 0 AND eu753_u.id <> :eu753_guestid AND gm753_gm2.userid IS NOT NULL AND eu753_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu754_u.id FROM {user} eu754_u JOIN {user_enrolments} ej754_ue ON ej754_ue.userid = eu754_u.id JOIN {enrol} ej754_e ON (ej754_e.id = ej754_ue.enrolid AND ej754_e.courseid = :ej754_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu754_u.id LEFT JOIN {groups_members} gm754_gm2 ON (gm754_gm2.userid = eu754_u.id AND gm754_gm2.groupid = :gm754_4524) WHERE 1 = 1 AND ej754_ue.status = :ej754_active AND ej754_e.status = :ej754_enabled AND ej754_ue.timestart < :ej754_now1 AND (ej754_ue.timeend = 0 OR ej754_ue.timeend > :ej754_now2) AND eu754_u.deleted = 0 AND eu754_u.id <> :eu754_guestid AND gm754_gm2.userid IS NOT NULL AND eu754_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu755_u.id FROM {user} eu755_u JOIN {user_enrolments} ej755_ue ON ej755_ue.userid = eu755_u.id JOIN {enrol} ej755_e ON (ej755_e.id = ej755_ue.enrolid AND ej755_e.courseid = :ej755_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu755_u.id LEFT JOIN {groups_members} gm755_gm2 ON (gm755_gm2.userid = eu755_u.id AND gm755_gm2.groupid = :gm755_4530) WHERE 1 = 1 AND ej755_ue.status = :ej755_active AND ej755_e.status = :ej755_enabled AND ej755_ue.timestart < :ej755_now1 AND (ej755_ue.timeend = 0 OR ej755_ue.timeend > :ej755_now2) AND eu755_u.deleted = 0 AND eu755_u.id <> :eu755_guestid AND gm755_gm2.userid IS NOT NULL AND eu755_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu756_u.id FROM {user} eu756_u JOIN {user_enrolments} ej756_ue ON ej756_ue.userid = eu756_u.id JOIN {enrol} ej756_e ON (ej756_e.id = ej756_ue.enrolid AND ej756_e.courseid = :ej756_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu756_u.id LEFT JOIN {groups_members} gm756_gm2 ON (gm756_gm2.userid = eu756_u.id AND gm756_gm2.groupid = :gm756_4536) WHERE 1 = 1 AND ej756_ue.status = :ej756_active AND ej756_e.status = :ej756_enabled AND ej756_ue.timestart < :ej756_now1 AND (ej756_ue.timeend = 0 OR ej756_ue.timeend > :ej756_now2) AND eu756_u.deleted = 0 AND eu756_u.id <> :eu756_guestid AND gm756_gm2.userid IS NOT NULL AND eu756_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu757_u.id FROM {user} eu757_u JOIN {user_enrolments} ej757_ue ON ej757_ue.userid = eu757_u.id JOIN {enrol} ej757_e ON (ej757_e.id = ej757_ue.enrolid AND ej757_e.courseid = :ej757_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu757_u.id LEFT JOIN {groups_members} gm757_gm2 ON (gm757_gm2.userid = eu757_u.id AND gm757_gm2.groupid = :gm757_4542) WHERE 1 = 1 AND ej757_ue.status = :ej757_active AND ej757_e.status = :ej757_enabled AND ej757_ue.timestart < :ej757_now1 AND (ej757_ue.timeend = 0 OR ej757_ue.timeend > :ej757_now2) AND eu757_u.deleted = 0 AND eu757_u.id <> :eu757_guestid AND gm757_gm2.userid IS NOT NULL AND eu757_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu758_u.id FROM {user} eu758_u JOIN {user_enrolments} ej758_ue ON ej758_ue.userid = eu758_u.id JOIN {enrol} ej758_e ON (ej758_e.id = ej758_ue.enrolid AND ej758_e.courseid = :ej758_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu758_u.id LEFT JOIN {groups_members} gm758_gm2 ON (gm758_gm2.userid = eu758_u.id AND gm758_gm2.groupid = :gm758_4548) WHERE 1 = 1 AND ej758_ue.status = :ej758_active AND ej758_e.status = :ej758_enabled AND ej758_ue.timestart < :ej758_now1 AND (ej758_ue.timeend = 0 OR ej758_ue.timeend > :ej758_now2) AND eu758_u.deleted = 0 AND eu758_u.id <> :eu758_guestid AND gm758_gm2.userid IS NOT NULL AND eu758_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu759_u.id FROM {user} eu759_u JOIN {user_enrolments} ej759_ue ON ej759_ue.userid = eu759_u.id JOIN {enrol} ej759_e ON (ej759_e.id = ej759_ue.enrolid AND ej759_e.courseid = :ej759_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu759_u.id LEFT JOIN {groups_members} gm759_gm2 ON (gm759_gm2.userid = eu759_u.id AND gm759_gm2.groupid = :gm759_4554) WHERE 1 = 1 AND ej759_ue.status = :ej759_active AND ej759_e.status = :ej759_enabled AND ej759_ue.timestart < :ej759_now1 AND (ej759_ue.timeend = 0 OR ej759_ue.timeend > :ej759_now2) AND eu759_u.deleted = 0 AND eu759_u.id <> :eu759_guestid AND gm759_gm2.userid IS NOT NULL AND eu759_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu760_u.id FROM {user} eu760_u JOIN {user_enrolments} ej760_ue ON ej760_ue.userid = eu760_u.id JOIN {enrol} ej760_e ON (ej760_e.id = ej760_ue.enrolid AND ej760_e.courseid = :ej760_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu760_u.id LEFT JOIN {groups_members} gm760_gm2 ON (gm760_gm2.userid = eu760_u.id AND gm760_gm2.groupid = :gm760_4560) WHERE 1 = 1 AND ej760_ue.status = :ej760_active AND ej760_e.status = :ej760_enabled AND ej760_ue.timestart < :ej760_now1 AND (ej760_ue.timeend = 0 OR ej760_ue.timeend > :ej760_now2) AND eu760_u.deleted = 0 AND eu760_u.id <> :eu760_guestid AND gm760_gm2.userid IS NOT NULL AND eu760_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu761_u.id FROM {user} eu761_u JOIN {user_enrolments} ej761_ue ON ej761_ue.userid = eu761_u.id JOIN {enrol} ej761_e ON (ej761_e.id = ej761_ue.enrolid AND ej761_e.courseid = :ej761_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu761_u.id LEFT JOIN {groups_members} gm761_gm2 ON (gm761_gm2.userid = eu761_u.id AND gm761_gm2.groupid = :gm761_4566) WHERE 1 = 1 AND ej761_ue.status = :ej761_active AND ej761_e.status = :ej761_enabled AND ej761_ue.timestart < :ej761_now1 AND (ej761_ue.timeend = 0 OR ej761_ue.timeend > :ej761_now2) AND eu761_u.deleted = 0 AND eu761_u.id <> :eu761_guestid AND gm761_gm2.userid IS NOT NULL AND eu761_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu762_u.id FROM {user} eu762_u JOIN {user_enrolments} ej762_ue ON ej762_ue.userid = eu762_u.id JOIN {enrol} ej762_e ON (ej762_e.id = ej762_ue.enrolid AND ej762_e.courseid = :ej762_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu762_u.id LEFT JOIN {groups_members} gm762_gm2 ON (gm762_gm2.userid = eu762_u.id AND gm762_gm2.groupid = :gm762_4572) WHERE 1 = 1 AND ej762_ue.status = :ej762_active AND ej762_e.status = :ej762_enabled AND ej762_ue.timestart < :ej762_now1 AND (ej762_ue.timeend = 0 OR ej762_ue.timeend > :ej762_now2) AND eu762_u.deleted = 0 AND eu762_u.id <> :eu762_guestid AND gm762_gm2.userid IS NOT NULL AND eu762_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu763_u.id FROM {user} eu763_u JOIN {user_enrolments} ej763_ue ON ej763_ue.userid = eu763_u.id JOIN {enrol} ej763_e ON (ej763_e.id = ej763_ue.enrolid AND ej763_e.courseid = :ej763_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu763_u.id LEFT JOIN {groups_members} gm763_gm2 ON (gm763_gm2.userid = eu763_u.id AND gm763_gm2.groupid = :gm763_4578) WHERE 1 = 1 AND ej763_ue.status = :ej763_active AND ej763_e.status = :ej763_enabled AND ej763_ue.timestart < :ej763_now1 AND (ej763_ue.timeend = 0 OR ej763_ue.timeend > :ej763_now2) AND eu763_u.deleted = 0 AND eu763_u.id <> :eu763_guestid AND gm763_gm2.userid IS NOT NULL AND eu763_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu764_u.id FROM {user} eu764_u JOIN {user_enrolments} ej764_ue ON ej764_ue.userid = eu764_u.id JOIN {enrol} ej764_e ON (ej764_e.id = ej764_ue.enrolid AND ej764_e.courseid = :ej764_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu764_u.id LEFT JOIN {groups_members} gm764_gm2 ON (gm764_gm2.userid = eu764_u.id AND gm764_gm2.groupid = :gm764_4584) WHERE 1 = 1 AND ej764_ue.status = :ej764_active AND ej764_e.status = :ej764_enabled AND ej764_ue.timestart < :ej764_now1 AND (ej764_ue.timeend = 0 OR ej764_ue.timeend > :ej764_now2) AND eu764_u.deleted = 0 AND eu764_u.id <> :eu764_guestid AND gm764_gm2.userid IS NOT NULL AND eu764_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu765_u.id FROM {user} eu765_u JOIN {user_enrolments} ej765_ue ON ej765_ue.userid = eu765_u.id JOIN {enrol} ej765_e ON (ej765_e.id = ej765_ue.enrolid AND ej765_e.courseid = :ej765_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu765_u.id LEFT JOIN {groups_members} gm765_gm2 ON (gm765_gm2.userid = eu765_u.id AND gm765_gm2.groupid = :gm765_4590) WHERE 1 = 1 AND ej765_ue.status = :ej765_active AND ej765_e.status = :ej765_enabled AND ej765_ue.timestart < :ej765_now1 AND (ej765_ue.timeend = 0 OR ej765_ue.timeend > :ej765_now2) AND eu765_u.deleted = 0 AND eu765_u.id <> :eu765_guestid AND gm765_gm2.userid IS NOT NULL AND eu765_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu766_u.id FROM {user} eu766_u JOIN {user_enrolments} ej766_ue ON ej766_ue.userid = eu766_u.id JOIN {enrol} ej766_e ON (ej766_e.id = ej766_ue.enrolid AND ej766_e.courseid = :ej766_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu766_u.id LEFT JOIN {groups_members} gm766_gm2 ON (gm766_gm2.userid = eu766_u.id AND gm766_gm2.groupid = :gm766_4596) WHERE 1 = 1 AND ej766_ue.status = :ej766_active AND ej766_e.status = :ej766_enabled AND ej766_ue.timestart < :ej766_now1 AND (ej766_ue.timeend = 0 OR ej766_ue.timeend > :ej766_now2) AND eu766_u.deleted = 0 AND eu766_u.id <> :eu766_guestid AND gm766_gm2.userid IS NOT NULL AND eu766_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu767_u.id FROM {user} eu767_u JOIN {user_enrolments} ej767_ue ON ej767_ue.userid = eu767_u.id JOIN {enrol} ej767_e ON (ej767_e.id = ej767_ue.enrolid AND ej767_e.courseid = :ej767_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu767_u.id LEFT JOIN {groups_members} gm767_gm2 ON (gm767_gm2.userid = eu767_u.id AND gm767_gm2.groupid = :gm767_4602) WHERE 1 = 1 AND ej767_ue.status = :ej767_active AND ej767_e.status = :ej767_enabled AND ej767_ue.timestart < :ej767_now1 AND (ej767_ue.timeend = 0 OR ej767_ue.timeend > :ej767_now2) AND eu767_u.deleted = 0 AND eu767_u.id <> :eu767_guestid AND gm767_gm2.userid IS NOT NULL AND eu767_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu768_u.id FROM {user} eu768_u JOIN {user_enrolments} ej768_ue ON ej768_ue.userid = eu768_u.id JOIN {enrol} ej768_e ON (ej768_e.id = ej768_ue.enrolid AND ej768_e.courseid = :ej768_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu768_u.id LEFT JOIN {groups_members} gm768_gm2 ON (gm768_gm2.userid = eu768_u.id AND gm768_gm2.groupid = :gm768_4608) WHERE 1 = 1 AND ej768_ue.status = :ej768_active AND ej768_e.status = :ej768_enabled AND ej768_ue.timestart < :ej768_now1 AND (ej768_ue.timeend = 0 OR ej768_ue.timeend > :ej768_now2) AND eu768_u.deleted = 0 AND eu768_u.id <> :eu768_guestid AND gm768_gm2.userid IS NOT NULL AND eu768_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu769_u.id FROM {user} eu769_u JOIN {user_enrolments} ej769_ue ON ej769_ue.userid = eu769_u.id JOIN {enrol} ej769_e ON (ej769_e.id = ej769_ue.enrolid AND ej769_e.courseid = :ej769_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu769_u.id LEFT JOIN {groups_members} gm769_gm2 ON (gm769_gm2.userid = eu769_u.id AND gm769_gm2.groupid = :gm769_4614) WHERE 1 = 1 AND ej769_ue.status = :ej769_active AND ej769_e.status = :ej769_enabled AND ej769_ue.timestart < :ej769_now1 AND (ej769_ue.timeend = 0 OR ej769_ue.timeend > :ej769_now2) AND eu769_u.deleted = 0 AND eu769_u.id <> :eu769_guestid AND gm769_gm2.userid IS NOT NULL AND eu769_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu770_u.id FROM {user} eu770_u JOIN {user_enrolments} ej770_ue ON ej770_ue.userid = eu770_u.id JOIN {enrol} ej770_e ON (ej770_e.id = ej770_ue.enrolid AND ej770_e.courseid = :ej770_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu770_u.id LEFT JOIN {groups_members} gm770_gm2 ON (gm770_gm2.userid = eu770_u.id AND gm770_gm2.groupid = :gm770_4620) WHERE 1 = 1 AND ej770_ue.status = :ej770_active AND ej770_e.status = :ej770_enabled AND ej770_ue.timestart < :ej770_now1 AND (ej770_ue.timeend = 0 OR ej770_ue.timeend > :ej770_now2) AND eu770_u.deleted = 0 AND eu770_u.id <> :eu770_guestid AND gm770_gm2.userid IS NOT NULL AND eu770_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu771_u.id FROM {user} eu771_u JOIN {user_enrolments} ej771_ue ON ej771_ue.userid = eu771_u.id JOIN {enrol} ej771_e ON (ej771_e.id = ej771_ue.enrolid AND ej771_e.courseid = :ej771_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu771_u.id LEFT JOIN {groups_members} gm771_gm2 ON (gm771_gm2.userid = eu771_u.id AND gm771_gm2.groupid = :gm771_4626) WHERE 1 = 1 AND ej771_ue.status = :ej771_active AND ej771_e.status = :ej771_enabled AND ej771_ue.timestart < :ej771_now1 AND (ej771_ue.timeend = 0 OR ej771_ue.timeend > :ej771_now2) AND eu771_u.deleted = 0 AND eu771_u.id <> :eu771_guestid AND gm771_gm2.userid IS NOT NULL AND eu771_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu772_u.id FROM {user} eu772_u JOIN {user_enrolments} ej772_ue ON ej772_ue.userid = eu772_u.id JOIN {enrol} ej772_e ON (ej772_e.id = ej772_ue.enrolid AND ej772_e.courseid = :ej772_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu772_u.id LEFT JOIN {groups_members} gm772_gm2 ON (gm772_gm2.userid = eu772_u.id AND gm772_gm2.groupid = :gm772_4632) WHERE 1 = 1 AND ej772_ue.status = :ej772_active AND ej772_e.status = :ej772_enabled AND ej772_ue.timestart < :ej772_now1 AND (ej772_ue.timeend = 0 OR ej772_ue.timeend > :ej772_now2) AND eu772_u.deleted = 0 AND eu772_u.id <> :eu772_guestid AND gm772_gm2.userid IS NOT NULL AND eu772_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu773_u.id FROM {user} eu773_u JOIN {user_enrolments} ej773_ue ON ej773_ue.userid = eu773_u.id JOIN {enrol} ej773_e ON (ej773_e.id = ej773_ue.enrolid AND ej773_e.courseid = :ej773_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu773_u.id LEFT JOIN {groups_members} gm773_gm2 ON (gm773_gm2.userid = eu773_u.id AND gm773_gm2.groupid = :gm773_4638) WHERE 1 = 1 AND ej773_ue.status = :ej773_active AND ej773_e.status = :ej773_enabled AND ej773_ue.timestart < :ej773_now1 AND (ej773_ue.timeend = 0 OR ej773_ue.timeend > :ej773_now2) AND eu773_u.deleted = 0 AND eu773_u.id <> :eu773_guestid AND gm773_gm2.userid IS NOT NULL AND eu773_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu774_u.id FROM {user} eu774_u JOIN {user_enrolments} ej774_ue ON ej774_ue.userid = eu774_u.id JOIN {enrol} ej774_e ON (ej774_e.id = ej774_ue.enrolid AND ej774_e.courseid = :ej774_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu774_u.id LEFT JOIN {groups_members} gm774_gm2 ON (gm774_gm2.userid = eu774_u.id AND gm774_gm2.groupid = :gm774_4644) WHERE 1 = 1 AND ej774_ue.status = :ej774_active AND ej774_e.status = :ej774_enabled AND ej774_ue.timestart < :ej774_now1 AND (ej774_ue.timeend = 0 OR ej774_ue.timeend > :ej774_now2) AND eu774_u.deleted = 0 AND eu774_u.id <> :eu774_guestid AND gm774_gm2.userid IS NOT NULL AND eu774_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu775_u.id FROM {user} eu775_u JOIN {user_enrolments} ej775_ue ON ej775_ue.userid = eu775_u.id JOIN {enrol} ej775_e ON (ej775_e.id = ej775_ue.enrolid AND ej775_e.courseid = :ej775_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu775_u.id LEFT JOIN {groups_members} gm775_gm2 ON (gm775_gm2.userid = eu775_u.id AND gm775_gm2.groupid = :gm775_4650) WHERE 1 = 1 AND ej775_ue.status = :ej775_active AND ej775_e.status = :ej775_enabled AND ej775_ue.timestart < :ej775_now1 AND (ej775_ue.timeend = 0 OR ej775_ue.timeend > :ej775_now2) AND eu775_u.deleted = 0 AND eu775_u.id <> :eu775_guestid AND gm775_gm2.userid IS NOT NULL AND eu775_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu776_u.id FROM {user} eu776_u JOIN {user_enrolments} ej776_ue ON ej776_ue.userid = eu776_u.id JOIN {enrol} ej776_e ON (ej776_e.id = ej776_ue.enrolid AND ej776_e.courseid = :ej776_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu776_u.id LEFT JOIN {groups_members} gm776_gm2 ON (gm776_gm2.userid = eu776_u.id AND gm776_gm2.groupid = :gm776_4656) WHERE 1 = 1 AND ej776_ue.status = :ej776_active AND ej776_e.status = :ej776_enabled AND ej776_ue.timestart < :ej776_now1 AND (ej776_ue.timeend = 0 OR ej776_ue.timeend > :ej776_now2) AND eu776_u.deleted = 0 AND eu776_u.id <> :eu776_guestid AND gm776_gm2.userid IS NOT NULL AND eu776_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu777_u.id FROM {user} eu777_u JOIN {user_enrolments} ej777_ue ON ej777_ue.userid = eu777_u.id JOIN {enrol} ej777_e ON (ej777_e.id = ej777_ue.enrolid AND ej777_e.courseid = :ej777_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu777_u.id LEFT JOIN {groups_members} gm777_gm2 ON (gm777_gm2.userid = eu777_u.id AND gm777_gm2.groupid = :gm777_4662) WHERE 1 = 1 AND ej777_ue.status = :ej777_active AND ej777_e.status = :ej777_enabled AND ej777_ue.timestart < :ej777_now1 AND (ej777_ue.timeend = 0 OR ej777_ue.timeend > :ej777_now2) AND eu777_u.deleted = 0 AND eu777_u.id <> :eu777_guestid AND gm777_gm2.userid IS NOT NULL AND eu777_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu778_u.id FROM {user} eu778_u JOIN {user_enrolments} ej778_ue ON ej778_ue.userid = eu778_u.id JOIN {enrol} ej778_e ON (ej778_e.id = ej778_ue.enrolid AND ej778_e.courseid = :ej778_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu778_u.id LEFT JOIN {groups_members} gm778_gm2 ON (gm778_gm2.userid = eu778_u.id AND gm778_gm2.groupid = :gm778_4668) WHERE 1 = 1 AND ej778_ue.status = :ej778_active AND ej778_e.status = :ej778_enabled AND ej778_ue.timestart < :ej778_now1 AND (ej778_ue.timeend = 0 OR ej778_ue.timeend > :ej778_now2) AND eu778_u.deleted = 0 AND eu778_u.id <> :eu778_guestid AND gm778_gm2.userid IS NOT NULL AND eu778_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu779_u.id FROM {user} eu779_u JOIN {user_enrolments} ej779_ue ON ej779_ue.userid = eu779_u.id JOIN {enrol} ej779_e ON (ej779_e.id = ej779_ue.enrolid AND ej779_e.courseid = :ej779_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu779_u.id LEFT JOIN {groups_members} gm779_gm2 ON (gm779_gm2.userid = eu779_u.id AND gm779_gm2.groupid = :gm779_4674) WHERE 1 = 1 AND ej779_ue.status = :ej779_active AND ej779_e.status = :ej779_enabled AND ej779_ue.timestart < :ej779_now1 AND (ej779_ue.timeend = 0 OR ej779_ue.timeend > :ej779_now2) AND eu779_u.deleted = 0 AND eu779_u.id <> :eu779_guestid AND gm779_gm2.userid IS NOT NULL AND eu779_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu780_u.id FROM {user} eu780_u JOIN {user_enrolments} ej780_ue ON ej780_ue.userid = eu780_u.id JOIN {enrol} ej780_e ON (ej780_e.id = ej780_ue.enrolid AND ej780_e.courseid = :ej780_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu780_u.id LEFT JOIN {groups_members} gm780_gm2 ON (gm780_gm2.userid = eu780_u.id AND gm780_gm2.groupid = :gm780_4680) WHERE 1 = 1 AND ej780_ue.status = :ej780_active AND ej780_e.status = :ej780_enabled AND ej780_ue.timestart < :ej780_now1 AND (ej780_ue.timeend = 0 OR ej780_ue.timeend > :ej780_now2) AND eu780_u.deleted = 0 AND eu780_u.id <> :eu780_guestid AND gm780_gm2.userid IS NOT NULL AND eu780_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu781_u.id FROM {user} eu781_u JOIN {user_enrolments} ej781_ue ON ej781_ue.userid = eu781_u.id JOIN {enrol} ej781_e ON (ej781_e.id = ej781_ue.enrolid AND ej781_e.courseid = :ej781_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu781_u.id LEFT JOIN {groups_members} gm781_gm2 ON (gm781_gm2.userid = eu781_u.id AND gm781_gm2.groupid = :gm781_4686) WHERE 1 = 1 AND ej781_ue.status = :ej781_active AND ej781_e.status = :ej781_enabled AND ej781_ue.timestart < :ej781_now1 AND (ej781_ue.timeend = 0 OR ej781_ue.timeend > :ej781_now2) AND eu781_u.deleted = 0 AND eu781_u.id <> :eu781_guestid AND gm781_gm2.userid IS NOT NULL AND eu781_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu782_u.id FROM {user} eu782_u JOIN {user_enrolments} ej782_ue ON ej782_ue.userid = eu782_u.id JOIN {enrol} ej782_e ON (ej782_e.id = ej782_ue.enrolid AND ej782_e.courseid = :ej782_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu782_u.id LEFT JOIN {groups_members} gm782_gm2 ON (gm782_gm2.userid = eu782_u.id AND gm782_gm2.groupid = :gm782_4692) WHERE 1 = 1 AND ej782_ue.status = :ej782_active AND ej782_e.status = :ej782_enabled AND ej782_ue.timestart < :ej782_now1 AND (ej782_ue.timeend = 0 OR ej782_ue.timeend > :ej782_now2) AND eu782_u.deleted = 0 AND eu782_u.id <> :eu782_guestid AND gm782_gm2.userid IS NOT NULL AND eu782_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu783_u.id FROM {user} eu783_u JOIN {user_enrolments} ej783_ue ON ej783_ue.userid = eu783_u.id JOIN {enrol} ej783_e ON (ej783_e.id = ej783_ue.enrolid AND ej783_e.courseid = :ej783_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu783_u.id LEFT JOIN {groups_members} gm783_gm2 ON (gm783_gm2.userid = eu783_u.id AND gm783_gm2.groupid = :gm783_4698) WHERE 1 = 1 AND ej783_ue.status = :ej783_active AND ej783_e.status = :ej783_enabled AND ej783_ue.timestart < :ej783_now1 AND (ej783_ue.timeend = 0 OR ej783_ue.timeend > :ej783_now2) AND eu783_u.deleted = 0 AND eu783_u.id <> :eu783_guestid AND gm783_gm2.userid IS NOT NULL AND eu783_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu784_u.id FROM {user} eu784_u JOIN {user_enrolments} ej784_ue ON ej784_ue.userid = eu784_u.id JOIN {enrol} ej784_e ON (ej784_e.id = ej784_ue.enrolid AND ej784_e.courseid = :ej784_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu784_u.id LEFT JOIN {groups_members} gm784_gm2 ON (gm784_gm2.userid = eu784_u.id AND gm784_gm2.groupid = :gm784_4704) WHERE 1 = 1 AND ej784_ue.status = :ej784_active AND ej784_e.status = :ej784_enabled AND ej784_ue.timestart < :ej784_now1 AND (ej784_ue.timeend = 0 OR ej784_ue.timeend > :ej784_now2) AND eu784_u.deleted = 0 AND eu784_u.id <> :eu784_guestid AND gm784_gm2.userid IS NOT NULL AND eu784_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu785_u.id FROM {user} eu785_u JOIN {user_enrolments} ej785_ue ON ej785_ue.userid = eu785_u.id JOIN {enrol} ej785_e ON (ej785_e.id = ej785_ue.enrolid AND ej785_e.courseid = :ej785_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu785_u.id LEFT JOIN {groups_members} gm785_gm2 ON (gm785_gm2.userid = eu785_u.id AND gm785_gm2.groupid = :gm785_4710) WHERE 1 = 1 AND ej785_ue.status = :ej785_active AND ej785_e.status = :ej785_enabled AND ej785_ue.timestart < :ej785_now1 AND (ej785_ue.timeend = 0 OR ej785_ue.timeend > :ej785_now2) AND eu785_u.deleted = 0 AND eu785_u.id <> :eu785_guestid AND gm785_gm2.userid IS NOT NULL AND eu785_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu786_u.id FROM {user} eu786_u JOIN {user_enrolments} ej786_ue ON ej786_ue.userid = eu786_u.id JOIN {enrol} ej786_e ON (ej786_e.id = ej786_ue.enrolid AND ej786_e.courseid = :ej786_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu786_u.id LEFT JOIN {groups_members} gm786_gm2 ON (gm786_gm2.userid = eu786_u.id AND gm786_gm2.groupid = :gm786_4716) WHERE 1 = 1 AND ej786_ue.status = :ej786_active AND ej786_e.status = :ej786_enabled AND ej786_ue.timestart < :ej786_now1 AND (ej786_ue.timeend = 0 OR ej786_ue.timeend > :ej786_now2) AND eu786_u.deleted = 0 AND eu786_u.id <> :eu786_guestid AND gm786_gm2.userid IS NOT NULL AND eu786_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu787_u.id FROM {user} eu787_u JOIN {user_enrolments} ej787_ue ON ej787_ue.userid = eu787_u.id JOIN {enrol} ej787_e ON (ej787_e.id = ej787_ue.enrolid AND ej787_e.courseid = :ej787_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu787_u.id LEFT JOIN {groups_members} gm787_gm2 ON (gm787_gm2.userid = eu787_u.id AND gm787_gm2.groupid = :gm787_4722) WHERE 1 = 1 AND ej787_ue.status = :ej787_active AND ej787_e.status = :ej787_enabled AND ej787_ue.timestart < :ej787_now1 AND (ej787_ue.timeend = 0 OR ej787_ue.timeend > :ej787_now2) AND eu787_u.deleted = 0 AND eu787_u.id <> :eu787_guestid AND gm787_gm2.userid IS NOT NULL AND eu787_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu788_u.id FROM {user} eu788_u JOIN {user_enrolments} ej788_ue ON ej788_ue.userid = eu788_u.id JOIN {enrol} ej788_e ON (ej788_e.id = ej788_ue.enrolid AND ej788_e.courseid = :ej788_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu788_u.id LEFT JOIN {groups_members} gm788_gm2 ON (gm788_gm2.userid = eu788_u.id AND gm788_gm2.groupid = :gm788_4728) WHERE 1 = 1 AND ej788_ue.status = :ej788_active AND ej788_e.status = :ej788_enabled AND ej788_ue.timestart < :ej788_now1 AND (ej788_ue.timeend = 0 OR ej788_ue.timeend > :ej788_now2) AND eu788_u.deleted = 0 AND eu788_u.id <> :eu788_guestid AND gm788_gm2.userid IS NOT NULL AND eu788_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu789_u.id FROM {user} eu789_u JOIN {user_enrolments} ej789_ue ON ej789_ue.userid = eu789_u.id JOIN {enrol} ej789_e ON (ej789_e.id = ej789_ue.enrolid AND ej789_e.courseid = :ej789_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu789_u.id LEFT JOIN {groups_members} gm789_gm2 ON (gm789_gm2.userid = eu789_u.id AND gm789_gm2.groupid = :gm789_4734) WHERE 1 = 1 AND ej789_ue.status = :ej789_active AND ej789_e.status = :ej789_enabled AND ej789_ue.timestart < :ej789_now1 AND (ej789_ue.timeend = 0 OR ej789_ue.timeend > :ej789_now2) AND eu789_u.deleted = 0 AND eu789_u.id <> :eu789_guestid AND gm789_gm2.userid IS NOT NULL AND eu789_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu790_u.id FROM {user} eu790_u JOIN {user_enrolments} ej790_ue ON ej790_ue.userid = eu790_u.id JOIN {enrol} ej790_e ON (ej790_e.id = ej790_ue.enrolid AND ej790_e.courseid = :ej790_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu790_u.id LEFT JOIN {groups_members} gm790_gm2 ON (gm790_gm2.userid = eu790_u.id AND gm790_gm2.groupid = :gm790_4740) WHERE 1 = 1 AND ej790_ue.status = :ej790_active AND ej790_e.status = :ej790_enabled AND ej790_ue.timestart < :ej790_now1 AND (ej790_ue.timeend = 0 OR ej790_ue.timeend > :ej790_now2) AND eu790_u.deleted = 0 AND eu790_u.id <> :eu790_guestid AND gm790_gm2.userid IS NOT NULL AND eu790_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu791_u.id FROM {user} eu791_u JOIN {user_enrolments} ej791_ue ON ej791_ue.userid = eu791_u.id JOIN {enrol} ej791_e ON (ej791_e.id = ej791_ue.enrolid AND ej791_e.courseid = :ej791_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu791_u.id LEFT JOIN {groups_members} gm791_gm2 ON (gm791_gm2.userid = eu791_u.id AND gm791_gm2.groupid = :gm791_4746) WHERE 1 = 1 AND ej791_ue.status = :ej791_active AND ej791_e.status = :ej791_enabled AND ej791_ue.timestart < :ej791_now1 AND (ej791_ue.timeend = 0 OR ej791_ue.timeend > :ej791_now2) AND eu791_u.deleted = 0 AND eu791_u.id <> :eu791_guestid AND gm791_gm2.userid IS NOT NULL AND eu791_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu792_u.id FROM {user} eu792_u JOIN {user_enrolments} ej792_ue ON ej792_ue.userid = eu792_u.id JOIN {enrol} ej792_e ON (ej792_e.id = ej792_ue.enrolid AND ej792_e.courseid = :ej792_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu792_u.id LEFT JOIN {groups_members} gm792_gm2 ON (gm792_gm2.userid = eu792_u.id AND gm792_gm2.groupid = :gm792_4752) WHERE 1 = 1 AND ej792_ue.status = :ej792_active AND ej792_e.status = :ej792_enabled AND ej792_ue.timestart < :ej792_now1 AND (ej792_ue.timeend = 0 OR ej792_ue.timeend > :ej792_now2) AND eu792_u.deleted = 0 AND eu792_u.id <> :eu792_guestid AND gm792_gm2.userid IS NOT NULL AND eu792_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu793_u.id FROM {user} eu793_u JOIN {user_enrolments} ej793_ue ON ej793_ue.userid = eu793_u.id JOIN {enrol} ej793_e ON (ej793_e.id = ej793_ue.enrolid AND ej793_e.courseid = :ej793_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu793_u.id LEFT JOIN {groups_members} gm793_gm2 ON (gm793_gm2.userid = eu793_u.id AND gm793_gm2.groupid = :gm793_4758) WHERE 1 = 1 AND ej793_ue.status = :ej793_active AND ej793_e.status = :ej793_enabled AND ej793_ue.timestart < :ej793_now1 AND (ej793_ue.timeend = 0 OR ej793_ue.timeend > :ej793_now2) AND eu793_u.deleted = 0 AND eu793_u.id <> :eu793_guestid AND gm793_gm2.userid IS NOT NULL AND eu793_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu794_u.id FROM {user} eu794_u JOIN {user_enrolments} ej794_ue ON ej794_ue.userid = eu794_u.id JOIN {enrol} ej794_e ON (ej794_e.id = ej794_ue.enrolid AND ej794_e.courseid = :ej794_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu794_u.id LEFT JOIN {groups_members} gm794_gm2 ON (gm794_gm2.userid = eu794_u.id AND gm794_gm2.groupid = :gm794_4764) WHERE 1 = 1 AND ej794_ue.status = :ej794_active AND ej794_e.status = :ej794_enabled AND ej794_ue.timestart < :ej794_now1 AND (ej794_ue.timeend = 0 OR ej794_ue.timeend > :ej794_now2) AND eu794_u.deleted = 0 AND eu794_u.id <> :eu794_guestid AND gm794_gm2.userid IS NOT NULL AND eu794_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu795_u.id FROM {user} eu795_u JOIN {user_enrolments} ej795_ue ON ej795_ue.userid = eu795_u.id JOIN {enrol} ej795_e ON (ej795_e.id = ej795_ue.enrolid AND ej795_e.courseid = :ej795_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu795_u.id LEFT JOIN {groups_members} gm795_gm2 ON (gm795_gm2.userid = eu795_u.id AND gm795_gm2.groupid = :gm795_4770) WHERE 1 = 1 AND ej795_ue.status = :ej795_active AND ej795_e.status = :ej795_enabled AND ej795_ue.timestart < :ej795_now1 AND (ej795_ue.timeend = 0 OR ej795_ue.timeend > :ej795_now2) AND eu795_u.deleted = 0 AND eu795_u.id <> :eu795_guestid AND gm795_gm2.userid IS NOT NULL AND eu795_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu796_u.id FROM {user} eu796_u JOIN {user_enrolments} ej796_ue ON ej796_ue.userid = eu796_u.id JOIN {enrol} ej796_e ON (ej796_e.id = ej796_ue.enrolid AND ej796_e.courseid = :ej796_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu796_u.id LEFT JOIN {groups_members} gm796_gm2 ON (gm796_gm2.userid = eu796_u.id AND gm796_gm2.groupid = :gm796_4776) WHERE 1 = 1 AND ej796_ue.status = :ej796_active AND ej796_e.status = :ej796_enabled AND ej796_ue.timestart < :ej796_now1 AND (ej796_ue.timeend = 0 OR ej796_ue.timeend > :ej796_now2) AND eu796_u.deleted = 0 AND eu796_u.id <> :eu796_guestid AND gm796_gm2.userid IS NOT NULL AND eu796_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu797_u.id FROM {user} eu797_u JOIN {user_enrolments} ej797_ue ON ej797_ue.userid = eu797_u.id JOIN {enrol} ej797_e ON (ej797_e.id = ej797_ue.enrolid AND ej797_e.courseid = :ej797_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu797_u.id LEFT JOIN {groups_members} gm797_gm2 ON (gm797_gm2.userid = eu797_u.id AND gm797_gm2.groupid = :gm797_4782) WHERE 1 = 1 AND ej797_ue.status = :ej797_active AND ej797_e.status = :ej797_enabled AND ej797_ue.timestart < :ej797_now1 AND (ej797_ue.timeend = 0 OR ej797_ue.timeend > :ej797_now2) AND eu797_u.deleted = 0 AND eu797_u.id <> :eu797_guestid AND gm797_gm2.userid IS NOT NULL AND eu797_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu798_u.id FROM {user} eu798_u JOIN {user_enrolments} ej798_ue ON ej798_ue.userid = eu798_u.id JOIN {enrol} ej798_e ON (ej798_e.id = ej798_ue.enrolid AND ej798_e.courseid = :ej798_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu798_u.id LEFT JOIN {groups_members} gm798_gm2 ON (gm798_gm2.userid = eu798_u.id AND gm798_gm2.groupid = :gm798_4788) WHERE 1 = 1 AND ej798_ue.status = :ej798_active AND ej798_e.status = :ej798_enabled AND ej798_ue.timestart < :ej798_now1 AND (ej798_ue.timeend = 0 OR ej798_ue.timeend > :ej798_now2) AND eu798_u.deleted = 0 AND eu798_u.id <> :eu798_guestid AND gm798_gm2.userid IS NOT NULL AND eu798_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu799_u.id FROM {user} eu799_u JOIN {user_enrolments} ej799_ue ON ej799_ue.userid = eu799_u.id JOIN {enrol} ej799_e ON (ej799_e.id = ej799_ue.enrolid AND ej799_e.courseid = :ej799_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu799_u.id LEFT JOIN {groups_members} gm799_gm2 ON (gm799_gm2.userid = eu799_u.id AND gm799_gm2.groupid = :gm799_4794) WHERE 1 = 1 AND ej799_ue.status = :ej799_active AND ej799_e.status = :ej799_enabled AND ej799_ue.timestart < :ej799_now1 AND (ej799_ue.timeend = 0 OR ej799_ue.timeend > :ej799_now2) AND eu799_u.deleted = 0 AND eu799_u.id <> :eu799_guestid AND gm799_gm2.userid IS NOT NULL AND eu799_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu800_u.id FROM {user} eu800_u JOIN {user_enrolments} ej800_ue ON ej800_ue.userid = eu800_u.id JOIN {enrol} ej800_e ON (ej800_e.id = ej800_ue.enrolid AND ej800_e.courseid = :ej800_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu800_u.id LEFT JOIN {groups_members} gm800_gm2 ON (gm800_gm2.userid = eu800_u.id AND gm800_gm2.groupid = :gm800_4800) WHERE 1 = 1 AND ej800_ue.status = :ej800_active AND ej800_e.status = :ej800_enabled AND ej800_ue.timestart < :ej800_now1 AND (ej800_ue.timeend = 0 OR ej800_ue.timeend > :ej800_now2) AND eu800_u.deleted = 0 AND eu800_u.id <> :eu800_guestid AND gm800_gm2.userid IS NOT NULL AND eu800_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu801_u.id FROM {user} eu801_u JOIN {user_enrolments} ej801_ue ON ej801_ue.userid = eu801_u.id JOIN {enrol} ej801_e ON (ej801_e.id = ej801_ue.enrolid AND ej801_e.courseid = :ej801_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu801_u.id LEFT JOIN {groups_members} gm801_gm2 ON (gm801_gm2.userid = eu801_u.id AND gm801_gm2.groupid = :gm801_4806) WHERE 1 = 1 AND ej801_ue.status = :ej801_active AND ej801_e.status = :ej801_enabled AND ej801_ue.timestart < :ej801_now1 AND (ej801_ue.timeend = 0 OR ej801_ue.timeend > :ej801_now2) AND eu801_u.deleted = 0 AND eu801_u.id <> :eu801_guestid AND gm801_gm2.userid IS NOT NULL AND eu801_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu802_u.id FROM {user} eu802_u JOIN {user_enrolments} ej802_ue ON ej802_ue.userid = eu802_u.id JOIN {enrol} ej802_e ON (ej802_e.id = ej802_ue.enrolid AND ej802_e.courseid = :ej802_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu802_u.id LEFT JOIN {groups_members} gm802_gm2 ON (gm802_gm2.userid = eu802_u.id AND gm802_gm2.groupid = :gm802_4812) WHERE 1 = 1 AND ej802_ue.status = :ej802_active AND ej802_e.status = :ej802_enabled AND ej802_ue.timestart < :ej802_now1 AND (ej802_ue.timeend = 0 OR ej802_ue.timeend > :ej802_now2) AND eu802_u.deleted = 0 AND eu802_u.id <> :eu802_guestid AND gm802_gm2.userid IS NOT NULL AND eu802_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu803_u.id FROM {user} eu803_u JOIN {user_enrolments} ej803_ue ON ej803_ue.userid = eu803_u.id JOIN {enrol} ej803_e ON (ej803_e.id = ej803_ue.enrolid AND ej803_e.courseid = :ej803_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu803_u.id LEFT JOIN {groups_members} gm803_gm2 ON (gm803_gm2.userid = eu803_u.id AND gm803_gm2.groupid = :gm803_4818) WHERE 1 = 1 AND ej803_ue.status = :ej803_active AND ej803_e.status = :ej803_enabled AND ej803_ue.timestart < :ej803_now1 AND (ej803_ue.timeend = 0 OR ej803_ue.timeend > :ej803_now2) AND eu803_u.deleted = 0 AND eu803_u.id <> :eu803_guestid AND gm803_gm2.userid IS NOT NULL AND eu803_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu804_u.id FROM {user} eu804_u JOIN {user_enrolments} ej804_ue ON ej804_ue.userid = eu804_u.id JOIN {enrol} ej804_e ON (ej804_e.id = ej804_ue.enrolid AND ej804_e.courseid = :ej804_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu804_u.id LEFT JOIN {groups_members} gm804_gm2 ON (gm804_gm2.userid = eu804_u.id AND gm804_gm2.groupid = :gm804_4824) WHERE 1 = 1 AND ej804_ue.status = :ej804_active AND ej804_e.status = :ej804_enabled AND ej804_ue.timestart < :ej804_now1 AND (ej804_ue.timeend = 0 OR ej804_ue.timeend > :ej804_now2) AND eu804_u.deleted = 0 AND eu804_u.id <> :eu804_guestid AND gm804_gm2.userid IS NOT NULL AND eu804_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu805_u.id FROM {user} eu805_u JOIN {user_enrolments} ej805_ue ON ej805_ue.userid = eu805_u.id JOIN {enrol} ej805_e ON (ej805_e.id = ej805_ue.enrolid AND ej805_e.courseid = :ej805_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu805_u.id LEFT JOIN {groups_members} gm805_gm2 ON (gm805_gm2.userid = eu805_u.id AND gm805_gm2.groupid = :gm805_4830) WHERE 1 = 1 AND ej805_ue.status = :ej805_active AND ej805_e.status = :ej805_enabled AND ej805_ue.timestart < :ej805_now1 AND (ej805_ue.timeend = 0 OR ej805_ue.timeend > :ej805_now2) AND eu805_u.deleted = 0 AND eu805_u.id <> :eu805_guestid AND gm805_gm2.userid IS NOT NULL AND eu805_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu806_u.id FROM {user} eu806_u JOIN {user_enrolments} ej806_ue ON ej806_ue.userid = eu806_u.id JOIN {enrol} ej806_e ON (ej806_e.id = ej806_ue.enrolid AND ej806_e.courseid = :ej806_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu806_u.id LEFT JOIN {groups_members} gm806_gm2 ON (gm806_gm2.userid = eu806_u.id AND gm806_gm2.groupid = :gm806_4836) WHERE 1 = 1 AND ej806_ue.status = :ej806_active AND ej806_e.status = :ej806_enabled AND ej806_ue.timestart < :ej806_now1 AND (ej806_ue.timeend = 0 OR ej806_ue.timeend > :ej806_now2) AND eu806_u.deleted = 0 AND eu806_u.id <> :eu806_guestid AND gm806_gm2.userid IS NOT NULL AND eu806_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu807_u.id FROM {user} eu807_u JOIN {user_enrolments} ej807_ue ON ej807_ue.userid = eu807_u.id JOIN {enrol} ej807_e ON (ej807_e.id = ej807_ue.enrolid AND ej807_e.courseid = :ej807_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu807_u.id LEFT JOIN {groups_members} gm807_gm2 ON (gm807_gm2.userid = eu807_u.id AND gm807_gm2.groupid = :gm807_4842) WHERE 1 = 1 AND ej807_ue.status = :ej807_active AND ej807_e.status = :ej807_enabled AND ej807_ue.timestart < :ej807_now1 AND (ej807_ue.timeend = 0 OR ej807_ue.timeend > :ej807_now2) AND eu807_u.deleted = 0 AND eu807_u.id <> :eu807_guestid AND gm807_gm2.userid IS NOT NULL AND eu807_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu808_u.id FROM {user} eu808_u JOIN {user_enrolments} ej808_ue ON ej808_ue.userid = eu808_u.id JOIN {enrol} ej808_e ON (ej808_e.id = ej808_ue.enrolid AND ej808_e.courseid = :ej808_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu808_u.id LEFT JOIN {groups_members} gm808_gm2 ON (gm808_gm2.userid = eu808_u.id AND gm808_gm2.groupid = :gm808_4848) WHERE 1 = 1 AND ej808_ue.status = :ej808_active AND ej808_e.status = :ej808_enabled AND ej808_ue.timestart < :ej808_now1 AND (ej808_ue.timeend = 0 OR ej808_ue.timeend > :ej808_now2) AND eu808_u.deleted = 0 AND eu808_u.id <> :eu808_guestid AND gm808_gm2.userid IS NOT NULL AND eu808_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu809_u.id FROM {user} eu809_u JOIN {user_enrolments} ej809_ue ON ej809_ue.userid = eu809_u.id JOIN {enrol} ej809_e ON (ej809_e.id = ej809_ue.enrolid AND ej809_e.courseid = :ej809_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu809_u.id LEFT JOIN {groups_members} gm809_gm2 ON (gm809_gm2.userid = eu809_u.id AND gm809_gm2.groupid = :gm809_4854) WHERE 1 = 1 AND ej809_ue.status = :ej809_active AND ej809_e.status = :ej809_enabled AND ej809_ue.timestart < :ej809_now1 AND (ej809_ue.timeend = 0 OR ej809_ue.timeend > :ej809_now2) AND eu809_u.deleted = 0 AND eu809_u.id <> :eu809_guestid AND gm809_gm2.userid IS NOT NULL AND eu809_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu810_u.id FROM {user} eu810_u JOIN {user_enrolments} ej810_ue ON ej810_ue.userid = eu810_u.id JOIN {enrol} ej810_e ON (ej810_e.id = ej810_ue.enrolid AND ej810_e.courseid = :ej810_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu810_u.id LEFT JOIN {groups_members} gm810_gm2 ON (gm810_gm2.userid = eu810_u.id AND gm810_gm2.groupid = :gm810_4860) WHERE 1 = 1 AND ej810_ue.status = :ej810_active AND ej810_e.status = :ej810_enabled AND ej810_ue.timestart < :ej810_now1 AND (ej810_ue.timeend = 0 OR ej810_ue.timeend > :ej810_now2) AND eu810_u.deleted = 0 AND eu810_u.id <> :eu810_guestid AND gm810_gm2.userid IS NOT NULL AND eu810_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu811_u.id FROM {user} eu811_u JOIN {user_enrolments} ej811_ue ON ej811_ue.userid = eu811_u.id JOIN {enrol} ej811_e ON (ej811_e.id = ej811_ue.enrolid AND ej811_e.courseid = :ej811_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu811_u.id LEFT JOIN {groups_members} gm811_gm2 ON (gm811_gm2.userid = eu811_u.id AND gm811_gm2.groupid = :gm811_4866) WHERE 1 = 1 AND ej811_ue.status = :ej811_active AND ej811_e.status = :ej811_enabled AND ej811_ue.timestart < :ej811_now1 AND (ej811_ue.timeend = 0 OR ej811_ue.timeend > :ej811_now2) AND eu811_u.deleted = 0 AND eu811_u.id <> :eu811_guestid AND gm811_gm2.userid IS NOT NULL AND eu811_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu812_u.id FROM {user} eu812_u JOIN {user_enrolments} ej812_ue ON ej812_ue.userid = eu812_u.id JOIN {enrol} ej812_e ON (ej812_e.id = ej812_ue.enrolid AND ej812_e.courseid = :ej812_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu812_u.id LEFT JOIN {groups_members} gm812_gm2 ON (gm812_gm2.userid = eu812_u.id AND gm812_gm2.groupid = :gm812_4872) WHERE 1 = 1 AND ej812_ue.status = :ej812_active AND ej812_e.status = :ej812_enabled AND ej812_ue.timestart < :ej812_now1 AND (ej812_ue.timeend = 0 OR ej812_ue.timeend > :ej812_now2) AND eu812_u.deleted = 0 AND eu812_u.id <> :eu812_guestid AND gm812_gm2.userid IS NOT NULL AND eu812_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu813_u.id FROM {user} eu813_u JOIN {user_enrolments} ej813_ue ON ej813_ue.userid = eu813_u.id JOIN {enrol} ej813_e ON (ej813_e.id = ej813_ue.enrolid AND ej813_e.courseid = :ej813_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu813_u.id LEFT JOIN {groups_members} gm813_gm2 ON (gm813_gm2.userid = eu813_u.id AND gm813_gm2.groupid = :gm813_4878) WHERE 1 = 1 AND ej813_ue.status = :ej813_active AND ej813_e.status = :ej813_enabled AND ej813_ue.timestart < :ej813_now1 AND (ej813_ue.timeend = 0 OR ej813_ue.timeend > :ej813_now2) AND eu813_u.deleted = 0 AND eu813_u.id <> :eu813_guestid AND gm813_gm2.userid IS NOT NULL AND eu813_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu814_u.id FROM {user} eu814_u JOIN {user_enrolments} ej814_ue ON ej814_ue.userid = eu814_u.id JOIN {enrol} ej814_e ON (ej814_e.id = ej814_ue.enrolid AND ej814_e.courseid = :ej814_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu814_u.id LEFT JOIN {groups_members} gm814_gm2 ON (gm814_gm2.userid = eu814_u.id AND gm814_gm2.groupid = :gm814_4884) WHERE 1 = 1 AND ej814_ue.status = :ej814_active AND ej814_e.status = :ej814_enabled AND ej814_ue.timestart < :ej814_now1 AND (ej814_ue.timeend = 0 OR ej814_ue.timeend > :ej814_now2) AND eu814_u.deleted = 0 AND eu814_u.id <> :eu814_guestid AND gm814_gm2.userid IS NOT NULL AND eu814_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu815_u.id FROM {user} eu815_u JOIN {user_enrolments} ej815_ue ON ej815_ue.userid = eu815_u.id JOIN {enrol} ej815_e ON (ej815_e.id = ej815_ue.enrolid AND ej815_e.courseid = :ej815_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu815_u.id LEFT JOIN {groups_members} gm815_gm2 ON (gm815_gm2.userid = eu815_u.id AND gm815_gm2.groupid = :gm815_4890) WHERE 1 = 1 AND ej815_ue.status = :ej815_active AND ej815_e.status = :ej815_enabled AND ej815_ue.timestart < :ej815_now1 AND (ej815_ue.timeend = 0 OR ej815_ue.timeend > :ej815_now2) AND eu815_u.deleted = 0 AND eu815_u.id <> :eu815_guestid AND gm815_gm2.userid IS NOT NULL AND eu815_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu816_u.id FROM {user} eu816_u JOIN {user_enrolments} ej816_ue ON ej816_ue.userid = eu816_u.id JOIN {enrol} ej816_e ON (ej816_e.id = ej816_ue.enrolid AND ej816_e.courseid = :ej816_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu816_u.id LEFT JOIN {groups_members} gm816_gm2 ON (gm816_gm2.userid = eu816_u.id AND gm816_gm2.groupid = :gm816_4896) WHERE 1 = 1 AND ej816_ue.status = :ej816_active AND ej816_e.status = :ej816_enabled AND ej816_ue.timestart < :ej816_now1 AND (ej816_ue.timeend = 0 OR ej816_ue.timeend > :ej816_now2) AND eu816_u.deleted = 0 AND eu816_u.id <> :eu816_guestid AND gm816_gm2.userid IS NOT NULL AND eu816_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu817_u.id FROM {user} eu817_u JOIN {user_enrolments} ej817_ue ON ej817_ue.userid = eu817_u.id JOIN {enrol} ej817_e ON (ej817_e.id = ej817_ue.enrolid AND ej817_e.courseid = :ej817_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu817_u.id LEFT JOIN {groups_members} gm817_gm2 ON (gm817_gm2.userid = eu817_u.id AND gm817_gm2.groupid = :gm817_4902) WHERE 1 = 1 AND ej817_ue.status = :ej817_active AND ej817_e.status = :ej817_enabled AND ej817_ue.timestart < :ej817_now1 AND (ej817_ue.timeend = 0 OR ej817_ue.timeend > :ej817_now2) AND eu817_u.deleted = 0 AND eu817_u.id <> :eu817_guestid AND gm817_gm2.userid IS NOT NULL AND eu817_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu818_u.id FROM {user} eu818_u JOIN {user_enrolments} ej818_ue ON ej818_ue.userid = eu818_u.id JOIN {enrol} ej818_e ON (ej818_e.id = ej818_ue.enrolid AND ej818_e.courseid = :ej818_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu818_u.id LEFT JOIN {groups_members} gm818_gm2 ON (gm818_gm2.userid = eu818_u.id AND gm818_gm2.groupid = :gm818_4908) WHERE 1 = 1 AND ej818_ue.status = :ej818_active AND ej818_e.status = :ej818_enabled AND ej818_ue.timestart < :ej818_now1 AND (ej818_ue.timeend = 0 OR ej818_ue.timeend > :ej818_now2) AND eu818_u.deleted = 0 AND eu818_u.id <> :eu818_guestid AND gm818_gm2.userid IS NOT NULL AND eu818_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu819_u.id FROM {user} eu819_u JOIN {user_enrolments} ej819_ue ON ej819_ue.userid = eu819_u.id JOIN {enrol} ej819_e ON (ej819_e.id = ej819_ue.enrolid AND ej819_e.courseid = :ej819_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu819_u.id LEFT JOIN {groups_members} gm819_gm2 ON (gm819_gm2.userid = eu819_u.id AND gm819_gm2.groupid = :gm819_4914) WHERE 1 = 1 AND ej819_ue.status = :ej819_active AND ej819_e.status = :ej819_enabled AND ej819_ue.timestart < :ej819_now1 AND (ej819_ue.timeend = 0 OR ej819_ue.timeend > :ej819_now2) AND eu819_u.deleted = 0 AND eu819_u.id <> :eu819_guestid AND gm819_gm2.userid IS NOT NULL AND eu819_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu820_u.id FROM {user} eu820_u JOIN {user_enrolments} ej820_ue ON ej820_ue.userid = eu820_u.id JOIN {enrol} ej820_e ON (ej820_e.id = ej820_ue.enrolid AND ej820_e.courseid = :ej820_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu820_u.id LEFT JOIN {groups_members} gm820_gm2 ON (gm820_gm2.userid = eu820_u.id AND gm820_gm2.groupid = :gm820_4920) WHERE 1 = 1 AND ej820_ue.status = :ej820_active AND ej820_e.status = :ej820_enabled AND ej820_ue.timestart < :ej820_now1 AND (ej820_ue.timeend = 0 OR ej820_ue.timeend > :ej820_now2) AND eu820_u.deleted = 0 AND eu820_u.id <> :eu820_guestid AND gm820_gm2.userid IS NOT NULL AND eu820_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu821_u.id FROM {user} eu821_u JOIN {user_enrolments} ej821_ue ON ej821_ue.userid = eu821_u.id JOIN {enrol} ej821_e ON (ej821_e.id = ej821_ue.enrolid AND ej821_e.courseid = :ej821_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu821_u.id LEFT JOIN {groups_members} gm821_gm2 ON (gm821_gm2.userid = eu821_u.id AND gm821_gm2.groupid = :gm821_4926) WHERE 1 = 1 AND ej821_ue.status = :ej821_active AND ej821_e.status = :ej821_enabled AND ej821_ue.timestart < :ej821_now1 AND (ej821_ue.timeend = 0 OR ej821_ue.timeend > :ej821_now2) AND eu821_u.deleted = 0 AND eu821_u.id <> :eu821_guestid AND gm821_gm2.userid IS NOT NULL AND eu821_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu822_u.id FROM {user} eu822_u JOIN {user_enrolments} ej822_ue ON ej822_ue.userid = eu822_u.id JOIN {enrol} ej822_e ON (ej822_e.id = ej822_ue.enrolid AND ej822_e.courseid = :ej822_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu822_u.id LEFT JOIN {groups_members} gm822_gm2 ON (gm822_gm2.userid = eu822_u.id AND gm822_gm2.groupid = :gm822_4932) WHERE 1 = 1 AND ej822_ue.status = :ej822_active AND ej822_e.status = :ej822_enabled AND ej822_ue.timestart < :ej822_now1 AND (ej822_ue.timeend = 0 OR ej822_ue.timeend > :ej822_now2) AND eu822_u.deleted = 0 AND eu822_u.id <> :eu822_guestid AND gm822_gm2.userid IS NOT NULL AND eu822_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu823_u.id FROM {user} eu823_u JOIN {user_enrolments} ej823_ue ON ej823_ue.userid = eu823_u.id JOIN {enrol} ej823_e ON (ej823_e.id = ej823_ue.enrolid AND ej823_e.courseid = :ej823_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu823_u.id LEFT JOIN {groups_members} gm823_gm2 ON (gm823_gm2.userid = eu823_u.id AND gm823_gm2.groupid = :gm823_4938) WHERE 1 = 1 AND ej823_ue.status = :ej823_active AND ej823_e.status = :ej823_enabled AND ej823_ue.timestart < :ej823_now1 AND (ej823_ue.timeend = 0 OR ej823_ue.timeend > :ej823_now2) AND eu823_u.deleted = 0 AND eu823_u.id <> :eu823_guestid AND gm823_gm2.userid IS NOT NULL AND eu823_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu824_u.id FROM {user} eu824_u JOIN {user_enrolments} ej824_ue ON ej824_ue.userid = eu824_u.id JOIN {enrol} ej824_e ON (ej824_e.id = ej824_ue.enrolid AND ej824_e.courseid = :ej824_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu824_u.id LEFT JOIN {groups_members} gm824_gm2 ON (gm824_gm2.userid = eu824_u.id AND gm824_gm2.groupid = :gm824_4944) WHERE 1 = 1 AND ej824_ue.status = :ej824_active AND ej824_e.status = :ej824_enabled AND ej824_ue.timestart < :ej824_now1 AND (ej824_ue.timeend = 0 OR ej824_ue.timeend > :ej824_now2) AND eu824_u.deleted = 0 AND eu824_u.id <> :eu824_guestid AND gm824_gm2.userid IS NOT NULL AND eu824_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu825_u.id FROM {user} eu825_u JOIN {user_enrolments} ej825_ue ON ej825_ue.userid = eu825_u.id JOIN {enrol} ej825_e ON (ej825_e.id = ej825_ue.enrolid AND ej825_e.courseid = :ej825_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu825_u.id LEFT JOIN {groups_members} gm825_gm2 ON (gm825_gm2.userid = eu825_u.id AND gm825_gm2.groupid = :gm825_4950) WHERE 1 = 1 AND ej825_ue.status = :ej825_active AND ej825_e.status = :ej825_enabled AND ej825_ue.timestart < :ej825_now1 AND (ej825_ue.timeend = 0 OR ej825_ue.timeend > :ej825_now2) AND eu825_u.deleted = 0 AND eu825_u.id <> :eu825_guestid AND gm825_gm2.userid IS NOT NULL AND eu825_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu826_u.id FROM {user} eu826_u JOIN {user_enrolments} ej826_ue ON ej826_ue.userid = eu826_u.id JOIN {enrol} ej826_e ON (ej826_e.id = ej826_ue.enrolid AND ej826_e.courseid = :ej826_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu826_u.id LEFT JOIN {groups_members} gm826_gm2 ON (gm826_gm2.userid = eu826_u.id AND gm826_gm2.groupid = :gm826_4956) WHERE 1 = 1 AND ej826_ue.status = :ej826_active AND ej826_e.status = :ej826_enabled AND ej826_ue.timestart < :ej826_now1 AND (ej826_ue.timeend = 0 OR ej826_ue.timeend > :ej826_now2) AND eu826_u.deleted = 0 AND eu826_u.id <> :eu826_guestid AND gm826_gm2.userid IS NOT NULL AND eu826_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu827_u.id FROM {user} eu827_u JOIN {user_enrolments} ej827_ue ON ej827_ue.userid = eu827_u.id JOIN {enrol} ej827_e ON (ej827_e.id = ej827_ue.enrolid AND ej827_e.courseid = :ej827_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu827_u.id LEFT JOIN {groups_members} gm827_gm2 ON (gm827_gm2.userid = eu827_u.id AND gm827_gm2.groupid = :gm827_4962) WHERE 1 = 1 AND ej827_ue.status = :ej827_active AND ej827_e.status = :ej827_enabled AND ej827_ue.timestart < :ej827_now1 AND (ej827_ue.timeend = 0 OR ej827_ue.timeend > :ej827_now2) AND eu827_u.deleted = 0 AND eu827_u.id <> :eu827_guestid AND gm827_gm2.userid IS NOT NULL AND eu827_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu828_u.id FROM {user} eu828_u JOIN {user_enrolments} ej828_ue ON ej828_ue.userid = eu828_u.id JOIN {enrol} ej828_e ON (ej828_e.id = ej828_ue.enrolid AND ej828_e.courseid = :ej828_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu828_u.id LEFT JOIN {groups_members} gm828_gm2 ON (gm828_gm2.userid = eu828_u.id AND gm828_gm2.groupid = :gm828_4968) WHERE 1 = 1 AND ej828_ue.status = :ej828_active AND ej828_e.status = :ej828_enabled AND ej828_ue.timestart < :ej828_now1 AND (ej828_ue.timeend = 0 OR ej828_ue.timeend > :ej828_now2) AND eu828_u.deleted = 0 AND eu828_u.id <> :eu828_guestid AND gm828_gm2.userid IS NOT NULL AND eu828_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu829_u.id FROM {user} eu829_u JOIN {user_enrolments} ej829_ue ON ej829_ue.userid = eu829_u.id JOIN {enrol} ej829_e ON (ej829_e.id = ej829_ue.enrolid AND ej829_e.courseid = :ej829_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu829_u.id LEFT JOIN {groups_members} gm829_gm2 ON (gm829_gm2.userid = eu829_u.id AND gm829_gm2.groupid = :gm829_4974) WHERE 1 = 1 AND ej829_ue.status = :ej829_active AND ej829_e.status = :ej829_enabled AND ej829_ue.timestart < :ej829_now1 AND (ej829_ue.timeend = 0 OR ej829_ue.timeend > :ej829_now2) AND eu829_u.deleted = 0 AND eu829_u.id <> :eu829_guestid AND gm829_gm2.userid IS NOT NULL AND eu829_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu830_u.id FROM {user} eu830_u JOIN {user_enrolments} ej830_ue ON ej830_ue.userid = eu830_u.id JOIN {enrol} ej830_e ON (ej830_e.id = ej830_ue.enrolid AND ej830_e.courseid = :ej830_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu830_u.id LEFT JOIN {groups_members} gm830_gm2 ON (gm830_gm2.userid = eu830_u.id AND gm830_gm2.groupid = :gm830_4980) WHERE 1 = 1 AND ej830_ue.status = :ej830_active AND ej830_e.status = :ej830_enabled AND ej830_ue.timestart < :ej830_now1 AND (ej830_ue.timeend = 0 OR ej830_ue.timeend > :ej830_now2) AND eu830_u.deleted = 0 AND eu830_u.id <> :eu830_guestid AND gm830_gm2.userid IS NOT NULL AND eu830_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu831_u.id FROM {user} eu831_u JOIN {user_enrolments} ej831_ue ON ej831_ue.userid = eu831_u.id JOIN {enrol} ej831_e ON (ej831_e.id = ej831_ue.enrolid AND ej831_e.courseid = :ej831_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu831_u.id LEFT JOIN {groups_members} gm831_gm2 ON (gm831_gm2.userid = eu831_u.id AND gm831_gm2.groupid = :gm831_4986) WHERE 1 = 1 AND ej831_ue.status = :ej831_active AND ej831_e.status = :ej831_enabled AND ej831_ue.timestart < :ej831_now1 AND (ej831_ue.timeend = 0 OR ej831_ue.timeend > :ej831_now2) AND eu831_u.deleted = 0 AND eu831_u.id <> :eu831_guestid AND gm831_gm2.userid IS NOT NULL AND eu831_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu832_u.id FROM {user} eu832_u JOIN {user_enrolments} ej832_ue ON ej832_ue.userid = eu832_u.id JOIN {enrol} ej832_e ON (ej832_e.id = ej832_ue.enrolid AND ej832_e.courseid = :ej832_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu832_u.id LEFT JOIN {groups_members} gm832_gm2 ON (gm832_gm2.userid = eu832_u.id AND gm832_gm2.groupid = :gm832_4992) WHERE 1 = 1 AND ej832_ue.status = :ej832_active AND ej832_e.status = :ej832_enabled AND ej832_ue.timestart < :ej832_now1 AND (ej832_ue.timeend = 0 OR ej832_ue.timeend > :ej832_now2) AND eu832_u.deleted = 0 AND eu832_u.id <> :eu832_guestid AND gm832_gm2.userid IS NOT NULL AND eu832_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu833_u.id FROM {user} eu833_u JOIN {user_enrolments} ej833_ue ON ej833_ue.userid = eu833_u.id JOIN {enrol} ej833_e ON (ej833_e.id = ej833_ue.enrolid AND ej833_e.courseid = :ej833_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu833_u.id LEFT JOIN {groups_members} gm833_gm2 ON (gm833_gm2.userid = eu833_u.id AND gm833_gm2.groupid = :gm833_4998) WHERE 1 = 1 AND ej833_ue.status = :ej833_active AND ej833_e.status = :ej833_enabled AND ej833_ue.timestart < :ej833_now1 AND (ej833_ue.timeend = 0 OR ej833_ue.timeend > :ej833_now2) AND eu833_u.deleted = 0 AND eu833_u.id <> :eu833_guestid AND gm833_gm2.userid IS NOT NULL AND eu833_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu834_u.id FROM {user} eu834_u JOIN {user_enrolments} ej834_ue ON ej834_ue.userid = eu834_u.id JOIN {enrol} ej834_e ON (ej834_e.id = ej834_ue.enrolid AND ej834_e.courseid = :ej834_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu834_u.id LEFT JOIN {groups_members} gm834_gm2 ON (gm834_gm2.userid = eu834_u.id AND gm834_gm2.groupid = :gm834_5004) WHERE 1 = 1 AND ej834_ue.status = :ej834_active AND ej834_e.status = :ej834_enabled AND ej834_ue.timestart < :ej834_now1 AND (ej834_ue.timeend = 0 OR ej834_ue.timeend > :ej834_now2) AND eu834_u.deleted = 0 AND eu834_u.id <> :eu834_guestid AND gm834_gm2.userid IS NOT NULL AND eu834_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu835_u.id FROM {user} eu835_u JOIN {user_enrolments} ej835_ue ON ej835_ue.userid = eu835_u.id JOIN {enrol} ej835_e ON (ej835_e.id = ej835_ue.enrolid AND ej835_e.courseid = :ej835_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu835_u.id LEFT JOIN {groups_members} gm835_gm2 ON (gm835_gm2.userid = eu835_u.id AND gm835_gm2.groupid = :gm835_5010) WHERE 1 = 1 AND ej835_ue.status = :ej835_active AND ej835_e.status = :ej835_enabled AND ej835_ue.timestart < :ej835_now1 AND (ej835_ue.timeend = 0 OR ej835_ue.timeend > :ej835_now2) AND eu835_u.deleted = 0 AND eu835_u.id <> :eu835_guestid AND gm835_gm2.userid IS NOT NULL AND eu835_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu836_u.id FROM {user} eu836_u JOIN {user_enrolments} ej836_ue ON ej836_ue.userid = eu836_u.id JOIN {enrol} ej836_e ON (ej836_e.id = ej836_ue.enrolid AND ej836_e.courseid = :ej836_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu836_u.id LEFT JOIN {groups_members} gm836_gm2 ON (gm836_gm2.userid = eu836_u.id AND gm836_gm2.groupid = :gm836_5016) WHERE 1 = 1 AND ej836_ue.status = :ej836_active AND ej836_e.status = :ej836_enabled AND ej836_ue.timestart < :ej836_now1 AND (ej836_ue.timeend = 0 OR ej836_ue.timeend > :ej836_now2) AND eu836_u.deleted = 0 AND eu836_u.id <> :eu836_guestid AND gm836_gm2.userid IS NOT NULL AND eu836_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu837_u.id FROM {user} eu837_u JOIN {user_enrolments} ej837_ue ON ej837_ue.userid = eu837_u.id JOIN {enrol} ej837_e ON (ej837_e.id = ej837_ue.enrolid AND ej837_e.courseid = :ej837_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu837_u.id LEFT JOIN {groups_members} gm837_gm2 ON (gm837_gm2.userid = eu837_u.id AND gm837_gm2.groupid = :gm837_5022) WHERE 1 = 1 AND ej837_ue.status = :ej837_active AND ej837_e.status = :ej837_enabled AND ej837_ue.timestart < :ej837_now1 AND (ej837_ue.timeend = 0 OR ej837_ue.timeend > :ej837_now2) AND eu837_u.deleted = 0 AND eu837_u.id <> :eu837_guestid AND gm837_gm2.userid IS NOT NULL AND eu837_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu838_u.id FROM {user} eu838_u JOIN {user_enrolments} ej838_ue ON ej838_ue.userid = eu838_u.id JOIN {enrol} ej838_e ON (ej838_e.id = ej838_ue.enrolid AND ej838_e.courseid = :ej838_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu838_u.id LEFT JOIN {groups_members} gm838_gm2 ON (gm838_gm2.userid = eu838_u.id AND gm838_gm2.groupid = :gm838_5028) WHERE 1 = 1 AND ej838_ue.status = :ej838_active AND ej838_e.status = :ej838_enabled AND ej838_ue.timestart < :ej838_now1 AND (ej838_ue.timeend = 0 OR ej838_ue.timeend > :ej838_now2) AND eu838_u.deleted = 0 AND eu838_u.id <> :eu838_guestid AND gm838_gm2.userid IS NOT NULL AND eu838_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu839_u.id FROM {user} eu839_u JOIN {user_enrolments} ej839_ue ON ej839_ue.userid = eu839_u.id JOIN {enrol} ej839_e ON (ej839_e.id = ej839_ue.enrolid AND ej839_e.courseid = :ej839_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu839_u.id LEFT JOIN {groups_members} gm839_gm2 ON (gm839_gm2.userid = eu839_u.id AND gm839_gm2.groupid = :gm839_5034) WHERE 1 = 1 AND ej839_ue.status = :ej839_active AND ej839_e.status = :ej839_enabled AND ej839_ue.timestart < :ej839_now1 AND (ej839_ue.timeend = 0 OR ej839_ue.timeend > :ej839_now2) AND eu839_u.deleted = 0 AND eu839_u.id <> :eu839_guestid AND gm839_gm2.userid IS NOT NULL AND eu839_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu840_u.id FROM {user} eu840_u JOIN {user_enrolments} ej840_ue ON ej840_ue.userid = eu840_u.id JOIN {enrol} ej840_e ON (ej840_e.id = ej840_ue.enrolid AND ej840_e.courseid = :ej840_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu840_u.id LEFT JOIN {groups_members} gm840_gm2 ON (gm840_gm2.userid = eu840_u.id AND gm840_gm2.groupid = :gm840_5040) WHERE 1 = 1 AND ej840_ue.status = :ej840_active AND ej840_e.status = :ej840_enabled AND ej840_ue.timestart < :ej840_now1 AND (ej840_ue.timeend = 0 OR ej840_ue.timeend > :ej840_now2) AND eu840_u.deleted = 0 AND eu840_u.id <> :eu840_guestid AND gm840_gm2.userid IS NOT NULL AND eu840_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu841_u.id FROM {user} eu841_u JOIN {user_enrolments} ej841_ue ON ej841_ue.userid = eu841_u.id JOIN {enrol} ej841_e ON (ej841_e.id = ej841_ue.enrolid AND ej841_e.courseid = :ej841_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu841_u.id LEFT JOIN {groups_members} gm841_gm2 ON (gm841_gm2.userid = eu841_u.id AND gm841_gm2.groupid = :gm841_5046) WHERE 1 = 1 AND ej841_ue.status = :ej841_active AND ej841_e.status = :ej841_enabled AND ej841_ue.timestart < :ej841_now1 AND (ej841_ue.timeend = 0 OR ej841_ue.timeend > :ej841_now2) AND eu841_u.deleted = 0 AND eu841_u.id <> :eu841_guestid AND gm841_gm2.userid IS NOT NULL AND eu841_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu842_u.id FROM {user} eu842_u JOIN {user_enrolments} ej842_ue ON ej842_ue.userid = eu842_u.id JOIN {enrol} ej842_e ON (ej842_e.id = ej842_ue.enrolid AND ej842_e.courseid = :ej842_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu842_u.id LEFT JOIN {groups_members} gm842_gm2 ON (gm842_gm2.userid = eu842_u.id AND gm842_gm2.groupid = :gm842_5052) WHERE 1 = 1 AND ej842_ue.status = :ej842_active AND ej842_e.status = :ej842_enabled AND ej842_ue.timestart < :ej842_now1 AND (ej842_ue.timeend = 0 OR ej842_ue.timeend > :ej842_now2) AND eu842_u.deleted = 0 AND eu842_u.id <> :eu842_guestid AND gm842_gm2.userid IS NOT NULL AND eu842_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu843_u.id FROM {user} eu843_u JOIN {user_enrolments} ej843_ue ON ej843_ue.userid = eu843_u.id JOIN {enrol} ej843_e ON (ej843_e.id = ej843_ue.enrolid AND ej843_e.courseid = :ej843_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu843_u.id LEFT JOIN {groups_members} gm843_gm2 ON (gm843_gm2.userid = eu843_u.id AND gm843_gm2.groupid = :gm843_5058) WHERE 1 = 1 AND ej843_ue.status = :ej843_active AND ej843_e.status = :ej843_enabled AND ej843_ue.timestart < :ej843_now1 AND (ej843_ue.timeend = 0 OR ej843_ue.timeend > :ej843_now2) AND eu843_u.deleted = 0 AND eu843_u.id <> :eu843_guestid AND gm843_gm2.userid IS NOT NULL AND eu843_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu844_u.id FROM {user} eu844_u JOIN {user_enrolments} ej844_ue ON ej844_ue.userid = eu844_u.id JOIN {enrol} ej844_e ON (ej844_e.id = ej844_ue.enrolid AND ej844_e.courseid = :ej844_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu844_u.id LEFT JOIN {groups_members} gm844_gm2 ON (gm844_gm2.userid = eu844_u.id AND gm844_gm2.groupid = :gm844_5064) WHERE 1 = 1 AND ej844_ue.status = :ej844_active AND ej844_e.status = :ej844_enabled AND ej844_ue.timestart < :ej844_now1 AND (ej844_ue.timeend = 0 OR ej844_ue.timeend > :ej844_now2) AND eu844_u.deleted = 0 AND eu844_u.id <> :eu844_guestid AND gm844_gm2.userid IS NOT NULL AND eu844_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu845_u.id FROM {user} eu845_u JOIN {user_enrolments} ej845_ue ON ej845_ue.userid = eu845_u.id JOIN {enrol} ej845_e ON (ej845_e.id = ej845_ue.enrolid AND ej845_e.courseid = :ej845_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu845_u.id LEFT JOIN {groups_members} gm845_gm2 ON (gm845_gm2.userid = eu845_u.id AND gm845_gm2.groupid = :gm845_5070) WHERE 1 = 1 AND ej845_ue.status = :ej845_active AND ej845_e.status = :ej845_enabled AND ej845_ue.timestart < :ej845_now1 AND (ej845_ue.timeend = 0 OR ej845_ue.timeend > :ej845_now2) AND eu845_u.deleted = 0 AND eu845_u.id <> :eu845_guestid AND gm845_gm2.userid IS NOT NULL AND eu845_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu846_u.id FROM {user} eu846_u JOIN {user_enrolments} ej846_ue ON ej846_ue.userid = eu846_u.id JOIN {enrol} ej846_e ON (ej846_e.id = ej846_ue.enrolid AND ej846_e.courseid = :ej846_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu846_u.id LEFT JOIN {groups_members} gm846_gm2 ON (gm846_gm2.userid = eu846_u.id AND gm846_gm2.groupid = :gm846_5076) WHERE 1 = 1 AND ej846_ue.status = :ej846_active AND ej846_e.status = :ej846_enabled AND ej846_ue.timestart < :ej846_now1 AND (ej846_ue.timeend = 0 OR ej846_ue.timeend > :ej846_now2) AND eu846_u.deleted = 0 AND eu846_u.id <> :eu846_guestid AND gm846_gm2.userid IS NOT NULL AND eu846_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu847_u.id FROM {user} eu847_u JOIN {user_enrolments} ej847_ue ON ej847_ue.userid = eu847_u.id JOIN {enrol} ej847_e ON (ej847_e.id = ej847_ue.enrolid AND ej847_e.courseid = :ej847_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu847_u.id LEFT JOIN {groups_members} gm847_gm2 ON (gm847_gm2.userid = eu847_u.id AND gm847_gm2.groupid = :gm847_5082) WHERE 1 = 1 AND ej847_ue.status = :ej847_active AND ej847_e.status = :ej847_enabled AND ej847_ue.timestart < :ej847_now1 AND (ej847_ue.timeend = 0 OR ej847_ue.timeend > :ej847_now2) AND eu847_u.deleted = 0 AND eu847_u.id <> :eu847_guestid AND gm847_gm2.userid IS NOT NULL AND eu847_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu848_u.id FROM {user} eu848_u JOIN {user_enrolments} ej848_ue ON ej848_ue.userid = eu848_u.id JOIN {enrol} ej848_e ON (ej848_e.id = ej848_ue.enrolid AND ej848_e.courseid = :ej848_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu848_u.id LEFT JOIN {groups_members} gm848_gm2 ON (gm848_gm2.userid = eu848_u.id AND gm848_gm2.groupid = :gm848_5088) WHERE 1 = 1 AND ej848_ue.status = :ej848_active AND ej848_e.status = :ej848_enabled AND ej848_ue.timestart < :ej848_now1 AND (ej848_ue.timeend = 0 OR ej848_ue.timeend > :ej848_now2) AND eu848_u.deleted = 0 AND eu848_u.id <> :eu848_guestid AND gm848_gm2.userid IS NOT NULL AND eu848_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu849_u.id FROM {user} eu849_u JOIN {user_enrolments} ej849_ue ON ej849_ue.userid = eu849_u.id JOIN {enrol} ej849_e ON (ej849_e.id = ej849_ue.enrolid AND ej849_e.courseid = :ej849_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu849_u.id LEFT JOIN {groups_members} gm849_gm2 ON (gm849_gm2.userid = eu849_u.id AND gm849_gm2.groupid = :gm849_5094) WHERE 1 = 1 AND ej849_ue.status = :ej849_active AND ej849_e.status = :ej849_enabled AND ej849_ue.timestart < :ej849_now1 AND (ej849_ue.timeend = 0 OR ej849_ue.timeend > :ej849_now2) AND eu849_u.deleted = 0 AND eu849_u.id <> :eu849_guestid AND gm849_gm2.userid IS NOT NULL AND eu849_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu850_u.id FROM {user} eu850_u JOIN {user_enrolments} ej850_ue ON ej850_ue.userid = eu850_u.id JOIN {enrol} ej850_e ON (ej850_e.id = ej850_ue.enrolid AND ej850_e.courseid = :ej850_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu850_u.id LEFT JOIN {groups_members} gm850_gm2 ON (gm850_gm2.userid = eu850_u.id AND gm850_gm2.groupid = :gm850_5100) WHERE 1 = 1 AND ej850_ue.status = :ej850_active AND ej850_e.status = :ej850_enabled AND ej850_ue.timestart < :ej850_now1 AND (ej850_ue.timeend = 0 OR ej850_ue.timeend > :ej850_now2) AND eu850_u.deleted = 0 AND eu850_u.id <> :eu850_guestid AND gm850_gm2.userid IS NOT NULL AND eu850_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu851_u.id FROM {user} eu851_u JOIN {user_enrolments} ej851_ue ON ej851_ue.userid = eu851_u.id JOIN {enrol} ej851_e ON (ej851_e.id = ej851_ue.enrolid AND ej851_e.courseid = :ej851_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu851_u.id LEFT JOIN {groups_members} gm851_gm2 ON (gm851_gm2.userid = eu851_u.id AND gm851_gm2.groupid = :gm851_5106) WHERE 1 = 1 AND ej851_ue.status = :ej851_active AND ej851_e.status = :ej851_enabled AND ej851_ue.timestart < :ej851_now1 AND (ej851_ue.timeend = 0 OR ej851_ue.timeend > :ej851_now2) AND eu851_u.deleted = 0 AND eu851_u.id <> :eu851_guestid AND gm851_gm2.userid IS NOT NULL AND eu851_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu852_u.id FROM {user} eu852_u JOIN {user_enrolments} ej852_ue ON ej852_ue.userid = eu852_u.id JOIN {enrol} ej852_e ON (ej852_e.id = ej852_ue.enrolid AND ej852_e.courseid = :ej852_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu852_u.id LEFT JOIN {groups_members} gm852_gm2 ON (gm852_gm2.userid = eu852_u.id AND gm852_gm2.groupid = :gm852_5112) WHERE 1 = 1 AND ej852_ue.status = :ej852_active AND ej852_e.status = :ej852_enabled AND ej852_ue.timestart < :ej852_now1 AND (ej852_ue.timeend = 0 OR ej852_ue.timeend > :ej852_now2) AND eu852_u.deleted = 0 AND eu852_u.id <> :eu852_guestid AND gm852_gm2.userid IS NOT NULL AND eu852_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu853_u.id FROM {user} eu853_u JOIN {user_enrolments} ej853_ue ON ej853_ue.userid = eu853_u.id JOIN {enrol} ej853_e ON (ej853_e.id = ej853_ue.enrolid AND ej853_e.courseid = :ej853_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu853_u.id LEFT JOIN {groups_members} gm853_gm2 ON (gm853_gm2.userid = eu853_u.id AND gm853_gm2.groupid = :gm853_5118) WHERE 1 = 1 AND ej853_ue.status = :ej853_active AND ej853_e.status = :ej853_enabled AND ej853_ue.timestart < :ej853_now1 AND (ej853_ue.timeend = 0 OR ej853_ue.timeend > :ej853_now2) AND eu853_u.deleted = 0 AND eu853_u.id <> :eu853_guestid AND gm853_gm2.userid IS NOT NULL AND eu853_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu854_u.id FROM {user} eu854_u JOIN {user_enrolments} ej854_ue ON ej854_ue.userid = eu854_u.id JOIN {enrol} ej854_e ON (ej854_e.id = ej854_ue.enrolid AND ej854_e.courseid = :ej854_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu854_u.id LEFT JOIN {groups_members} gm854_gm2 ON (gm854_gm2.userid = eu854_u.id AND gm854_gm2.groupid = :gm854_5124) WHERE 1 = 1 AND ej854_ue.status = :ej854_active AND ej854_e.status = :ej854_enabled AND ej854_ue.timestart < :ej854_now1 AND (ej854_ue.timeend = 0 OR ej854_ue.timeend > :ej854_now2) AND eu854_u.deleted = 0 AND eu854_u.id <> :eu854_guestid AND gm854_gm2.userid IS NOT NULL AND eu854_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu855_u.id FROM {user} eu855_u JOIN {user_enrolments} ej855_ue ON ej855_ue.userid = eu855_u.id JOIN {enrol} ej855_e ON (ej855_e.id = ej855_ue.enrolid AND ej855_e.courseid = :ej855_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu855_u.id LEFT JOIN {groups_members} gm855_gm2 ON (gm855_gm2.userid = eu855_u.id AND gm855_gm2.groupid = :gm855_5130) WHERE 1 = 1 AND ej855_ue.status = :ej855_active AND ej855_e.status = :ej855_enabled AND ej855_ue.timestart < :ej855_now1 AND (ej855_ue.timeend = 0 OR ej855_ue.timeend > :ej855_now2) AND eu855_u.deleted = 0 AND eu855_u.id <> :eu855_guestid AND gm855_gm2.userid IS NOT NULL AND eu855_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu856_u.id FROM {user} eu856_u JOIN {user_enrolments} ej856_ue ON ej856_ue.userid = eu856_u.id JOIN {enrol} ej856_e ON (ej856_e.id = ej856_ue.enrolid AND ej856_e.courseid = :ej856_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu856_u.id LEFT JOIN {groups_members} gm856_gm2 ON (gm856_gm2.userid = eu856_u.id AND gm856_gm2.groupid = :gm856_5136) WHERE 1 = 1 AND ej856_ue.status = :ej856_active AND ej856_e.status = :ej856_enabled AND ej856_ue.timestart < :ej856_now1 AND (ej856_ue.timeend = 0 OR ej856_ue.timeend > :ej856_now2) AND eu856_u.deleted = 0 AND eu856_u.id <> :eu856_guestid AND gm856_gm2.userid IS NOT NULL AND eu856_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu857_u.id FROM {user} eu857_u JOIN {user_enrolments} ej857_ue ON ej857_ue.userid = eu857_u.id JOIN {enrol} ej857_e ON (ej857_e.id = ej857_ue.enrolid AND ej857_e.courseid = :ej857_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu857_u.id LEFT JOIN {groups_members} gm857_gm2 ON (gm857_gm2.userid = eu857_u.id AND gm857_gm2.groupid = :gm857_5142) WHERE 1 = 1 AND ej857_ue.status = :ej857_active AND ej857_e.status = :ej857_enabled AND ej857_ue.timestart < :ej857_now1 AND (ej857_ue.timeend = 0 OR ej857_ue.timeend > :ej857_now2) AND eu857_u.deleted = 0 AND eu857_u.id <> :eu857_guestid AND gm857_gm2.userid IS NOT NULL AND eu857_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu858_u.id FROM {user} eu858_u JOIN {user_enrolments} ej858_ue ON ej858_ue.userid = eu858_u.id JOIN {enrol} ej858_e ON (ej858_e.id = ej858_ue.enrolid AND ej858_e.courseid = :ej858_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu858_u.id LEFT JOIN {groups_members} gm858_gm2 ON (gm858_gm2.userid = eu858_u.id AND gm858_gm2.groupid = :gm858_5148) WHERE 1 = 1 AND ej858_ue.status = :ej858_active AND ej858_e.status = :ej858_enabled AND ej858_ue.timestart < :ej858_now1 AND (ej858_ue.timeend = 0 OR ej858_ue.timeend > :ej858_now2) AND eu858_u.deleted = 0 AND eu858_u.id <> :eu858_guestid AND gm858_gm2.userid IS NOT NULL AND eu858_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu859_u.id FROM {user} eu859_u JOIN {user_enrolments} ej859_ue ON ej859_ue.userid = eu859_u.id JOIN {enrol} ej859_e ON (ej859_e.id = ej859_ue.enrolid AND ej859_e.courseid = :ej859_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu859_u.id LEFT JOIN {groups_members} gm859_gm2 ON (gm859_gm2.userid = eu859_u.id AND gm859_gm2.groupid = :gm859_5154) WHERE 1 = 1 AND ej859_ue.status = :ej859_active AND ej859_e.status = :ej859_enabled AND ej859_ue.timestart < :ej859_now1 AND (ej859_ue.timeend = 0 OR ej859_ue.timeend > :ej859_now2) AND eu859_u.deleted = 0 AND eu859_u.id <> :eu859_guestid AND gm859_gm2.userid IS NOT NULL AND eu859_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu860_u.id FROM {user} eu860_u JOIN {user_enrolments} ej860_ue ON ej860_ue.userid = eu860_u.id JOIN {enrol} ej860_e ON (ej860_e.id = ej860_ue.enrolid AND ej860_e.courseid = :ej860_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu860_u.id LEFT JOIN {groups_members} gm860_gm2 ON (gm860_gm2.userid = eu860_u.id AND gm860_gm2.groupid = :gm860_5160) WHERE 1 = 1 AND ej860_ue.status = :ej860_active AND ej860_e.status = :ej860_enabled AND ej860_ue.timestart < :ej860_now1 AND (ej860_ue.timeend = 0 OR ej860_ue.timeend > :ej860_now2) AND eu860_u.deleted = 0 AND eu860_u.id <> :eu860_guestid AND gm860_gm2.userid IS NOT NULL AND eu860_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu861_u.id FROM {user} eu861_u JOIN {user_enrolments} ej861_ue ON ej861_ue.userid = eu861_u.id JOIN {enrol} ej861_e ON (ej861_e.id = ej861_ue.enrolid AND ej861_e.courseid = :ej861_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu861_u.id LEFT JOIN {groups_members} gm861_gm2 ON (gm861_gm2.userid = eu861_u.id AND gm861_gm2.groupid = :gm861_5166) WHERE 1 = 1 AND ej861_ue.status = :ej861_active AND ej861_e.status = :ej861_enabled AND ej861_ue.timestart < :ej861_now1 AND (ej861_ue.timeend = 0 OR ej861_ue.timeend > :ej861_now2) AND eu861_u.deleted = 0 AND eu861_u.id <> :eu861_guestid AND gm861_gm2.userid IS NOT NULL AND eu861_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu862_u.id FROM {user} eu862_u JOIN {user_enrolments} ej862_ue ON ej862_ue.userid = eu862_u.id JOIN {enrol} ej862_e ON (ej862_e.id = ej862_ue.enrolid AND ej862_e.courseid = :ej862_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu862_u.id LEFT JOIN {groups_members} gm862_gm2 ON (gm862_gm2.userid = eu862_u.id AND gm862_gm2.groupid = :gm862_5172) WHERE 1 = 1 AND ej862_ue.status = :ej862_active AND ej862_e.status = :ej862_enabled AND ej862_ue.timestart < :ej862_now1 AND (ej862_ue.timeend = 0 OR ej862_ue.timeend > :ej862_now2) AND eu862_u.deleted = 0 AND eu862_u.id <> :eu862_guestid AND gm862_gm2.userid IS NOT NULL AND eu862_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu863_u.id FROM {user} eu863_u JOIN {user_enrolments} ej863_ue ON ej863_ue.userid = eu863_u.id JOIN {enrol} ej863_e ON (ej863_e.id = ej863_ue.enrolid AND ej863_e.courseid = :ej863_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu863_u.id LEFT JOIN {groups_members} gm863_gm2 ON (gm863_gm2.userid = eu863_u.id AND gm863_gm2.groupid = :gm863_5178) WHERE 1 = 1 AND ej863_ue.status = :ej863_active AND ej863_e.status = :ej863_enabled AND ej863_ue.timestart < :ej863_now1 AND (ej863_ue.timeend = 0 OR ej863_ue.timeend > :ej863_now2) AND eu863_u.deleted = 0 AND eu863_u.id <> :eu863_guestid AND gm863_gm2.userid IS NOT NULL AND eu863_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu864_u.id FROM {user} eu864_u JOIN {user_enrolments} ej864_ue ON ej864_ue.userid = eu864_u.id JOIN {enrol} ej864_e ON (ej864_e.id = ej864_ue.enrolid AND ej864_e.courseid = :ej864_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu864_u.id LEFT JOIN {groups_members} gm864_gm2 ON (gm864_gm2.userid = eu864_u.id AND gm864_gm2.groupid = :gm864_5184) WHERE 1 = 1 AND ej864_ue.status = :ej864_active AND ej864_e.status = :ej864_enabled AND ej864_ue.timestart < :ej864_now1 AND (ej864_ue.timeend = 0 OR ej864_ue.timeend > :ej864_now2) AND eu864_u.deleted = 0 AND eu864_u.id <> :eu864_guestid AND gm864_gm2.userid IS NOT NULL AND eu864_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu865_u.id FROM {user} eu865_u JOIN {user_enrolments} ej865_ue ON ej865_ue.userid = eu865_u.id JOIN {enrol} ej865_e ON (ej865_e.id = ej865_ue.enrolid AND ej865_e.courseid = :ej865_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu865_u.id LEFT JOIN {groups_members} gm865_gm2 ON (gm865_gm2.userid = eu865_u.id AND gm865_gm2.groupid = :gm865_5190) WHERE 1 = 1 AND ej865_ue.status = :ej865_active AND ej865_e.status = :ej865_enabled AND ej865_ue.timestart < :ej865_now1 AND (ej865_ue.timeend = 0 OR ej865_ue.timeend > :ej865_now2) AND eu865_u.deleted = 0 AND eu865_u.id <> :eu865_guestid AND gm865_gm2.userid IS NOT NULL AND eu865_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu866_u.id FROM {user} eu866_u JOIN {user_enrolments} ej866_ue ON ej866_ue.userid = eu866_u.id JOIN {enrol} ej866_e ON (ej866_e.id = ej866_ue.enrolid AND ej866_e.courseid = :ej866_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu866_u.id LEFT JOIN {groups_members} gm866_gm2 ON (gm866_gm2.userid = eu866_u.id AND gm866_gm2.groupid = :gm866_5196) WHERE 1 = 1 AND ej866_ue.status = :ej866_active AND ej866_e.status = :ej866_enabled AND ej866_ue.timestart < :ej866_now1 AND (ej866_ue.timeend = 0 OR ej866_ue.timeend > :ej866_now2) AND eu866_u.deleted = 0 AND eu866_u.id <> :eu866_guestid AND gm866_gm2.userid IS NOT NULL AND eu866_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu867_u.id FROM {user} eu867_u JOIN {user_enrolments} ej867_ue ON ej867_ue.userid = eu867_u.id JOIN {enrol} ej867_e ON (ej867_e.id = ej867_ue.enrolid AND ej867_e.courseid = :ej867_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu867_u.id LEFT JOIN {groups_members} gm867_gm2 ON (gm867_gm2.userid = eu867_u.id AND gm867_gm2.groupid = :gm867_5202) WHERE 1 = 1 AND ej867_ue.status = :ej867_active AND ej867_e.status = :ej867_enabled AND ej867_ue.timestart < :ej867_now1 AND (ej867_ue.timeend = 0 OR ej867_ue.timeend > :ej867_now2) AND eu867_u.deleted = 0 AND eu867_u.id <> :eu867_guestid AND gm867_gm2.userid IS NOT NULL AND eu867_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu868_u.id FROM {user} eu868_u JOIN {user_enrolments} ej868_ue ON ej868_ue.userid = eu868_u.id JOIN {enrol} ej868_e ON (ej868_e.id = ej868_ue.enrolid AND ej868_e.courseid = :ej868_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu868_u.id LEFT JOIN {groups_members} gm868_gm2 ON (gm868_gm2.userid = eu868_u.id AND gm868_gm2.groupid = :gm868_5208) WHERE 1 = 1 AND ej868_ue.status = :ej868_active AND ej868_e.status = :ej868_enabled AND ej868_ue.timestart < :ej868_now1 AND (ej868_ue.timeend = 0 OR ej868_ue.timeend > :ej868_now2) AND eu868_u.deleted = 0 AND eu868_u.id <> :eu868_guestid AND gm868_gm2.userid IS NOT NULL AND eu868_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu869_u.id FROM {user} eu869_u JOIN {user_enrolments} ej869_ue ON ej869_ue.userid = eu869_u.id JOIN {enrol} ej869_e ON (ej869_e.id = ej869_ue.enrolid AND ej869_e.courseid = :ej869_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu869_u.id LEFT JOIN {groups_members} gm869_gm2 ON (gm869_gm2.userid = eu869_u.id AND gm869_gm2.groupid = :gm869_5214) WHERE 1 = 1 AND ej869_ue.status = :ej869_active AND ej869_e.status = :ej869_enabled AND ej869_ue.timestart < :ej869_now1 AND (ej869_ue.timeend = 0 OR ej869_ue.timeend > :ej869_now2) AND eu869_u.deleted = 0 AND eu869_u.id <> :eu869_guestid AND gm869_gm2.userid IS NOT NULL AND eu869_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu870_u.id FROM {user} eu870_u JOIN {user_enrolments} ej870_ue ON ej870_ue.userid = eu870_u.id JOIN {enrol} ej870_e ON (ej870_e.id = ej870_ue.enrolid AND ej870_e.courseid = :ej870_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu870_u.id LEFT JOIN {groups_members} gm870_gm2 ON (gm870_gm2.userid = eu870_u.id AND gm870_gm2.groupid = :gm870_5220) WHERE 1 = 1 AND ej870_ue.status = :ej870_active AND ej870_e.status = :ej870_enabled AND ej870_ue.timestart < :ej870_now1 AND (ej870_ue.timeend = 0 OR ej870_ue.timeend > :ej870_now2) AND eu870_u.deleted = 0 AND eu870_u.id <> :eu870_guestid AND gm870_gm2.userid IS NOT NULL AND eu870_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu871_u.id FROM {user} eu871_u JOIN {user_enrolments} ej871_ue ON ej871_ue.userid = eu871_u.id JOIN {enrol} ej871_e ON (ej871_e.id = ej871_ue.enrolid AND ej871_e.courseid = :ej871_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu871_u.id LEFT JOIN {groups_members} gm871_gm2 ON (gm871_gm2.userid = eu871_u.id AND gm871_gm2.groupid = :gm871_5226) WHERE 1 = 1 AND ej871_ue.status = :ej871_active AND ej871_e.status = :ej871_enabled AND ej871_ue.timestart < :ej871_now1 AND (ej871_ue.timeend = 0 OR ej871_ue.timeend > :ej871_now2) AND eu871_u.deleted = 0 AND eu871_u.id <> :eu871_guestid AND gm871_gm2.userid IS NOT NULL AND eu871_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu872_u.id FROM {user} eu872_u JOIN {user_enrolments} ej872_ue ON ej872_ue.userid = eu872_u.id JOIN {enrol} ej872_e ON (ej872_e.id = ej872_ue.enrolid AND ej872_e.courseid = :ej872_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu872_u.id LEFT JOIN {groups_members} gm872_gm2 ON (gm872_gm2.userid = eu872_u.id AND gm872_gm2.groupid = :gm872_5232) WHERE 1 = 1 AND ej872_ue.status = :ej872_active AND ej872_e.status = :ej872_enabled AND ej872_ue.timestart < :ej872_now1 AND (ej872_ue.timeend = 0 OR ej872_ue.timeend > :ej872_now2) AND eu872_u.deleted = 0 AND eu872_u.id <> :eu872_guestid AND gm872_gm2.userid IS NOT NULL AND eu872_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu873_u.id FROM {user} eu873_u JOIN {user_enrolments} ej873_ue ON ej873_ue.userid = eu873_u.id JOIN {enrol} ej873_e ON (ej873_e.id = ej873_ue.enrolid AND ej873_e.courseid = :ej873_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu873_u.id LEFT JOIN {groups_members} gm873_gm2 ON (gm873_gm2.userid = eu873_u.id AND gm873_gm2.groupid = :gm873_5238) WHERE 1 = 1 AND ej873_ue.status = :ej873_active AND ej873_e.status = :ej873_enabled AND ej873_ue.timestart < :ej873_now1 AND (ej873_ue.timeend = 0 OR ej873_ue.timeend > :ej873_now2) AND eu873_u.deleted = 0 AND eu873_u.id <> :eu873_guestid AND gm873_gm2.userid IS NOT NULL AND eu873_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu874_u.id FROM {user} eu874_u JOIN {user_enrolments} ej874_ue ON ej874_ue.userid = eu874_u.id JOIN {enrol} ej874_e ON (ej874_e.id = ej874_ue.enrolid AND ej874_e.courseid = :ej874_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu874_u.id LEFT JOIN {groups_members} gm874_gm2 ON (gm874_gm2.userid = eu874_u.id AND gm874_gm2.groupid = :gm874_5244) WHERE 1 = 1 AND ej874_ue.status = :ej874_active AND ej874_e.status = :ej874_enabled AND ej874_ue.timestart < :ej874_now1 AND (ej874_ue.timeend = 0 OR ej874_ue.timeend > :ej874_now2) AND eu874_u.deleted = 0 AND eu874_u.id <> :eu874_guestid AND gm874_gm2.userid IS NOT NULL AND eu874_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu875_u.id FROM {user} eu875_u JOIN {user_enrolments} ej875_ue ON ej875_ue.userid = eu875_u.id JOIN {enrol} ej875_e ON (ej875_e.id = ej875_ue.enrolid AND ej875_e.courseid = :ej875_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu875_u.id LEFT JOIN {groups_members} gm875_gm2 ON (gm875_gm2.userid = eu875_u.id AND gm875_gm2.groupid = :gm875_5250) WHERE 1 = 1 AND ej875_ue.status = :ej875_active AND ej875_e.status = :ej875_enabled AND ej875_ue.timestart < :ej875_now1 AND (ej875_ue.timeend = 0 OR ej875_ue.timeend > :ej875_now2) AND eu875_u.deleted = 0 AND eu875_u.id <> :eu875_guestid AND gm875_gm2.userid IS NOT NULL AND eu875_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu876_u.id FROM {user} eu876_u JOIN {user_enrolments} ej876_ue ON ej876_ue.userid = eu876_u.id JOIN {enrol} ej876_e ON (ej876_e.id = ej876_ue.enrolid AND ej876_e.courseid = :ej876_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu876_u.id LEFT JOIN {groups_members} gm876_gm2 ON (gm876_gm2.userid = eu876_u.id AND gm876_gm2.groupid = :gm876_5256) WHERE 1 = 1 AND ej876_ue.status = :ej876_active AND ej876_e.status = :ej876_enabled AND ej876_ue.timestart < :ej876_now1 AND (ej876_ue.timeend = 0 OR ej876_ue.timeend > :ej876_now2) AND eu876_u.deleted = 0 AND eu876_u.id <> :eu876_guestid AND gm876_gm2.userid IS NOT NULL AND eu876_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu877_u.id FROM {user} eu877_u JOIN {user_enrolments} ej877_ue ON ej877_ue.userid = eu877_u.id JOIN {enrol} ej877_e ON (ej877_e.id = ej877_ue.enrolid AND ej877_e.courseid = :ej877_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu877_u.id LEFT JOIN {groups_members} gm877_gm2 ON (gm877_gm2.userid = eu877_u.id AND gm877_gm2.groupid = :gm877_5262) WHERE 1 = 1 AND ej877_ue.status = :ej877_active AND ej877_e.status = :ej877_enabled AND ej877_ue.timestart < :ej877_now1 AND (ej877_ue.timeend = 0 OR ej877_ue.timeend > :ej877_now2) AND eu877_u.deleted = 0 AND eu877_u.id <> :eu877_guestid AND gm877_gm2.userid IS NOT NULL AND eu877_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu878_u.id FROM {user} eu878_u JOIN {user_enrolments} ej878_ue ON ej878_ue.userid = eu878_u.id JOIN {enrol} ej878_e ON (ej878_e.id = ej878_ue.enrolid AND ej878_e.courseid = :ej878_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu878_u.id LEFT JOIN {groups_members} gm878_gm2 ON (gm878_gm2.userid = eu878_u.id AND gm878_gm2.groupid = :gm878_5268) WHERE 1 = 1 AND ej878_ue.status = :ej878_active AND ej878_e.status = :ej878_enabled AND ej878_ue.timestart < :ej878_now1 AND (ej878_ue.timeend = 0 OR ej878_ue.timeend > :ej878_now2) AND eu878_u.deleted = 0 AND eu878_u.id <> :eu878_guestid AND gm878_gm2.userid IS NOT NULL AND eu878_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu879_u.id FROM {user} eu879_u JOIN {user_enrolments} ej879_ue ON ej879_ue.userid = eu879_u.id JOIN {enrol} ej879_e ON (ej879_e.id = ej879_ue.enrolid AND ej879_e.courseid = :ej879_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu879_u.id LEFT JOIN {groups_members} gm879_gm2 ON (gm879_gm2.userid = eu879_u.id AND gm879_gm2.groupid = :gm879_5274) WHERE 1 = 1 AND ej879_ue.status = :ej879_active AND ej879_e.status = :ej879_enabled AND ej879_ue.timestart < :ej879_now1 AND (ej879_ue.timeend = 0 OR ej879_ue.timeend > :ej879_now2) AND eu879_u.deleted = 0 AND eu879_u.id <> :eu879_guestid AND gm879_gm2.userid IS NOT NULL AND eu879_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu880_u.id FROM {user} eu880_u JOIN {user_enrolments} ej880_ue ON ej880_ue.userid = eu880_u.id JOIN {enrol} ej880_e ON (ej880_e.id = ej880_ue.enrolid AND ej880_e.courseid = :ej880_courseid) JOIN (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid IN (1,3,5134,15647) AND roleid IN (5) ) ra ON ra.userid = eu880_u.id LEFT JOIN {groups_members} gm880_gm2 ON (gm880_gm2.userid = eu880_u.id AND gm880_gm2.groupid = :gm880_5280) WHERE 1 = 1 AND ej880_ue.status = :ej880_active AND ej880_e.status = :ej880_enabled AND ej880_ue.timestart < :ej880_now1 AND (ej880_ue.timeend = 0 OR ej880_ue.timeend > :ej880_now2) AND eu880_u.deleted = 0 AND eu880_u.id <> :eu880_guestid AND gm880_gm2.userid IS NOT NULL AND eu880_u.deleted = 0) je ON (je.id = u.id AND u.deleted = 0) UNION SELECT u.id, u.picture, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename, u.imagealt, u.email FROM {user} u JOIN (SELECT DISTINCT eu881_u.id FROM {user} eu881_u JOIN {user_enrolments} ej881_ue ON ej881_ue.userid = eu881_u.id JOIN {enrol} ej881_e ON (ej881_e.id = ej881_ue.enrolid AND ej881_