Hmmmm... the reason i am using membergroupid was because the members Primaryusergroup is Registered. I don't wish to sum that one up.
The ones i want to sum up are the Public Groups that the user ALSO belongs to.
As far as I can work out usergroupid is Primary Usergroup.. while membergroupid is the public or other usergroups that the user belongs to. In there you get listed 9,13,16 but the SQL i provided won't pick up that 13.. only the 9.
I want it to pick up the 9.
All my users are still in Registered.. but i am topping up their public usergroup bits.
|