filtering memberships by user_id