GetBlogsByArrayId query refactoring