SESION: select id,cat,subcat1,subcat2,subcat3,subcat4,subcat5,count(*) as count , REMAP(subcat1,12,(42,48,46,44,53,43,45,47,49,51,52,50),(1,2,3,4,5,6,7,8,9,10,11,12)) as r from products_search where active=1 AND date_publish >= 1727949555 {{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,12,(42,48,46,44,53,43,45,47,49,51,52,50),(1,2,3,4,5,6,7,8,9,10,11,12)) as r from products_search where active=1 AND date_publish >= 1727949555 AND cat=4 AND dlv_country in(100) AND subcat1 in( 42,48,46,44,53,43,45,47,49,51,52,50) GROUP BY subcat1 ORDER BY r ASC limit 100