You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&& cate_index<100000000 && right(cate_index,6)!="000000" && GC.cate_view="V" && ' at line 8 |
SELECT cate_num, cate_name From NS_main.Goods_Category as GC left join NS_main.Goods as G using(cate_num) left join NT_admin.Goods as ntG using(goods_num) left join NT_admin.Brand as ntB using(brd_num) left join NT_admin.Goods_price as ntGP using(goods_num) WHERE cate_index>= && cate_index<100000000 && right(cate_index,6)!="000000" && GC.cate_view="V" && goods_view="V" && brd_view="V" && gs_view="V" GROUP BY truncate(cate_index,-4) ORDER BY rand() LIMIT 12 |