diff --git a/models/class.groupmodel.php b/models/class.groupmodel.php index a2ca3b0..5cb934a 100644 --- a/models/class.groupmodel.php +++ b/models/class.groupmodel.php @@ -761,7 +761,7 @@ public function getMyGroups($where =[], $orderFields = '', $limit = false, $offs ->select('lcu1.Email', '', 'LastDiscussionCommentsUserEmail') ->from('Group g') ->join('UserGroup ug', 'ug.GroupID=g.GroupID and ug.UserID='.Gdn::session()->UserID) - ->join('Category c', 'c.GroupID=g.GroupID and c.DisplayAs ="Categories"') + ->join('Category c', 'c.GroupID=g.GroupID and c.UrlCode = g.ChallengeID') ->join('User lcu1', 'c.LastDiscussionCommentsUserID = lcu1.UserID')// Last post/comment inserted/edited by user ->where('g.Archived' , 0 ) ->where($where);