Fix #7 - ACCESS_FRIENDS filterquery now calculated correctly