SESION: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,18,(103,104,105,98,99,100,102,116,101,106,107,108,110,113,115,114,109,117),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18)) as r from products_search where active=1 AND date_publish >= 1728298473 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,18,(103,104,105,98,99,100,102,116,101,106,107,108,110,113,115,114,109,117),(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18)) as r from products_search where active=1 AND date_publish >= 1728298473 AND domain in(1) AND cat=7 AND dlv_country in(100) AND subcat1 in( 103,104,105,98,99,100,102,116,101,106,107,108,110,113,115,114,109,117) GROUP BY subcat1 ORDER BY r ASC limit 100