LPS-28089 Fix sql generation for anyAssetTags