1 and (CateId in(select CateId from products_category where UId like '0,951,963,%') or CateId='963' or (ExtCateId like '%,964,%' or ExtCateId like '%,968,%' or ExtCateId like '%,975,%' or ExtCateId like '%,963,%')) and PicPath_0 is not null and Model is not null and status=1 and SoldOut=0