You May Like
SQL语句出错:select * from products where 1 and (CateId in(select CateId from products_category where UId like '0,408,%') or CateId='408' or (ExtCateId like '%,375,%' or ExtCateId like '%,383,%' or ExtCateId like '%,397,%' or ExtCateId like '%,413,%' or ExtCateId like '%,414,%' or ExtCateId like '%,424,%' or ExtCateId like '%,429,%' or ExtCateId like '%,430,%' or ExtCateId like '%,432,%' or ExtCateId like '%,444,%' or ExtCateId like '%,445,%' or ExtCateId like '%,446,%' or ExtCateId like '%,447,%' or ExtCateId like '%,448,%' or ExtCateId like '%,449,%' or ExtCateId like '%,450,%' or ExtCateId like '%,452,%' or ExtCateId like '%,453,%' or ExtCateId like '%,504,%' or ExtCateId like '%,508,%' or ExtCateId like '%,717,%' or ExtCateId like '%,408,%')) and (((SoldStatus!=2 and Stock>=0) or (SoldStatus=2 and Stock>0)) and (SoldOut=0 or SoldOut=2 or (SoldOut=1 and IsSoldOut=1 and 1732350262 > SStartTime))) order by if(MyOrder>0, if(MyOrder=999, 1000001, MyOrder), 1000000) asc,ProId desc limit 0, 80
错误代码:#2006 - MySQL server has gone away