diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index 674c486b7cd..e578be30a45 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -109,7 +109,7 @@ $where = ''; } - $sqlselect = "SELECT ge.id, $usernamefield $as pivot, u.id uid, ge.*"; + $sqlselect = "SELECT ge.id, $usernamefield $as pivot, u.id as uid, ge.*"; $sqlfrom = "FROM {$CFG->prefix}glossary_entries ge, {$CFG->prefix}user u"; $sqlwhere = "WHERE ge.userid = u.id AND (ge.approved != 0 $userid)