select:eval global $vbulletin; $result = $vbulletin->db->query_read_slave("SELECT username, userid, usergroupid FROM " . TABLE_PREFIX . "user WHERE usergroupid IN(5, 6, 7) ORDER BY usergroupid"); $options = array(); while ($row = $vbulletin->db->fetch_array($result)) { $options[$row['userid']] = htmlspecialchars_uni($row['username']); }