whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in ("+string.Join(",",tagParamList)+")) is null)");
intindex=0;
whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in ("+string.Join(",",query.ExcludeInheritedTags.Select(t=>paramName+index++))+")) is null)");