Warren - My apologies for the slow response to this; however, it seems like you were able to get it working. Have you had any troubles? Not being familiar with MSSQL, it seems to me that this is related to the order by clause in the SQL statement. I'm basing this off of what I read at:
http://www.codingforums.com/archive/index.php?t-27947.html
As I looked at the query I'm not sure there is any reason to have the DISTINCT there. AFAIK (actually I justed checked), there is a unique index for groupid, userid so I do not see where the benefit is in making it distinct. The function seems to have been copied from somewhere else and I suspect that it could use one of the main lib functions. In any case, I will check with some of the more experienced developers and see how this might best be resolved. Peace - Anthony
I have traced this to /group/lib/legacylib.php at line 115 and removed the DISTINCT keyword it now works. However I am not sure if this is going to cause any other issues.