moodle get user first "login" query code example Example: moodle query first user access select firstaccess from mdl_user;