SESION: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,25,(210,211,212,213,136,137,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,157),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)) as r from products_search where active=1 AND date_publish >= 1728302360 AND domain in(1) {{category}} AND dlv_country in(100) {{sortparam}} {{groupby}} ORDER BY r ASC limit 100
CATEGORY MENU: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,25,(210,211,212,213,136,137,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,157),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25)) as r from products_search where active=1 AND date_publish >= 1728302360 AND domain in(1) AND cat=8 AND dlv_country in(100) AND subcat1 in( 210,211,212,213,136,137,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,157) GROUP BY subcat1 ORDER BY r ASC limit 100