thx for your fast replay and is working and plz if any chance to add 2 group in the same time like that for exemple ??
PHP Code:
in_array($bbuserinfo['usergroupid'], array(13, 12))
PHP Code:
SELECT user.username, user.field7 FROM ". TABLE_PREFIX ."user LEFT JOIN mo_userfield ON(mo_user.userid=mo_userfield.userid) WHERE in_array($bbuserinfo['usergroupid'], array(13, 12))

thx again