ERROR: operator does not exist: character varying = bigint at character 454 HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. SELECT DISTINCT u.id, u.firstname, u.lastname, l.time FROM mdl_user u, mdl_role_assignments ra, mdl_log l WHERE l.time > '1268473826' AND l.course = '2' AND l.module = 'course' AND l.action = 'enrol' AND l.info = u.id AND u.id = ra.userid AND ra.contextid IN (329,2357,1) ORDER BY l.time ASC line 677 of lib\dmllib.php: call to debugging() line 918 of lib\dmllib.php: call to get_recordset_sql() line 554 of lib\deprecatedlib.php: call to get_records_sql() line 1052 of course\lib.php: call to get_recent_enrolments() line 27 of blocks\recent_activity\block_recent_activity.php: call to print_recent_activity() line 202 of blocks\moodleblock.class.php: call to block_recent_activity->get_content() line 226 of blocks\moodleblock.class.php: call to block_base->is_empty() line 331 of lib\blocklib.php: call to block_base->_print_block() line 302 of course\format\weeks\format.php: call to blocks_print_group() line 205 of course\view.php: call to require()