Fix broken query when generating blog feed