public function get_user_group_title($uid){ $pre = C('DB_PREFIX'); $res = M('AuthGroupAccess aga')->join("{$pre}auth_group ag on aga.group_id = ag.id") ->field('ag.title')->find(); return $res['title']; }