Use #scoped instead of #all on query