select ProductID,ProductName,ImagePath,Designer,SalePrice,Price, GRoupID,PreOrder,0 as LC,(select top 1 TypeID from mss_Types where TypeID in (select typeid from mss_types where [sign]='DESIGNERS') and TypeID in (select TypeID from mss_Index where ProductID=cache_products.ProductID)) AS DesignerID from cache_Products where (publishdate < getdate() or publishdate is null) and 1=1 and exists (select top 1 1 from mss_index where typeid=2 and productid=cache_Products.productid) and exists (select top 1 1 from mss_index where typeid=5 and productid=cache_Products.productid) and ( ( [Keywords] like '%where%' and [Keywords] like '%the%' and [Keywords] like '%wild%' and [Keywords] like '%thing%' ) or productname like '%where the wild thing%' or productID in (select distinct ProductID from msS_Index where TypeID in (select TypeID from mss_Types where TypeName like '%where the wild thing%' or Remark='where the wild thing'))) order by PublishDate desc