In addition to previous helpful comments ...
- OpenACS 3.2.5 had changes 1 and 3 but not 2
- In item #2 of the original answer there is one more issue with the line:
where ad_group_member_p ( user_id, $group_id ) = 't'
resulting in
ERROR: Column reference "user_id" is ambiguous
I changed to "u.user_id" and it seems ok.
Being a new OpenACS fan I don't realize potential implications, or the possibilities for similar issues in other files. Those with more experience will surely take note :)
Way to go.