I don't know that that can be done using a query (if it could, it would be a complicated one). If you look in admincp/misc.php around line 354 (where it says "if ($_REQUEST['do'] == 'updateuser')"), then you can see the code that's used to update titles and ranks when you do it from the admincp. (You could add a "WHERE usergroupid =" to only do it for one primary usergroup. If you wanted to include a check for secondary usergroups, you'd have to check the membergroupid field).
|