-
select count(*) as cnt from
(
select pd.*
, ca1.wm_ca_id as ca_id1
, ca2.wm_ca_id as ca_id2
, ca3.wm_ca_id as ca_id3
from sp_product as pd
left join sp_category as ca1 on pd.wm_ca_id1 = ca1.wm_id
left join sp_category as ca2 on pd.wm_ca_id2 = ca2.wm_id
left join sp_category as ca3 on pd.wm_ca_id3 = ca3.wm_id
) as product
where 1 = 1 and product.wm_use = 'Y'
-
NEW
-
NEW
-
NEW BEST
-
NEW BEST
-
NEW
-
NEW BEST
-
NEW
-
NEW
-
NEW
-
NEW
-
NEW
-
NEW
-
NEW
-
NEW