more improvements for getPositionsByMemberIdAndCommunityId() method (fixes #3445)