$DB_site->query_first(" SELECT user.usergroupid AS usergroupid, moderator.moderatorid AS moderatorid FROM user LEFT JOIN moderator ON moderator.userid = user.userid WHERE user.userid='$bbuserinfo[userid]'");