OO-662: optimize the members view of course and group. I make three queries to prevent to attack with the o_bs_membership, and prevent a cross product