postgresql7.1 select rel_id from group_member_map where group_id = acs__magic_object_id('registered_users') and member_id = :user_id select membership_rel__deleted( :rel_id );