SESION: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,23,(238,179,172,79,80,81,82,83,78,84,85,86,87,88,89,90,91,92,93,94,95,96,97),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)) as r from products_search where active=1 AND date_publish >= 1728300285 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,23,(238,179,172,79,80,81,82,83,78,84,85,86,87,88,89,90,91,92,93,94,95,96,97),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)) as r from products_search where active=1 AND date_publish >= 1728300285 AND domain in(1) AND cat=6 AND dlv_country in(100) AND subcat1 in( 238,179,172,79,80,81,82,83,78,84,85,86,87,88,89,90,91,92,93,94,95,96,97) GROUP BY subcat1 ORDER BY r ASC limit 100