SESION: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,26,(3,4,5,7,20,9,6,8,22,173,10,11,176,12,13,14,15,16,17,18,21,23,24,174,25,19),(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,26)) as r from products_search where active=1 AND date_publish >= 1728302451 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,26,(3,4,5,7,20,9,6,8,22,173,10,11,176,12,13,14,15,16,17,18,21,23,24,174,25,19),(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,26)) as r from products_search where active=1 AND date_publish >= 1728302451 AND domain in(1) AND cat=2 AND dlv_country in(100) AND subcat1 in( 3,4,5,7,20,9,6,8,22,173,10,11,176,12,13,14,15,16,17,18,21,23,24,174,25,19) GROUP BY subcat1 ORDER BY r ASC limit 100