Ordine (fo) 1 ( (SELECT sku_listino FROM prodotti a JOIN prodotti_sku b ON a.id = b.Prodid WHERE b.Prodid = p.id order by sku_listino limit 1) )
Categoria (fc) 0 ( AND prod_categoria IN (0,1,5,6,11,24,25,26,2,27,28,29,9,38,39,40,41,12,17,33,34,35,36,37,19,18,30,31,32,20,42,43,44,45,46,47,48,21,49,50,51,52,22,23,53,54,55,57))
Ricerca (fs) ()
Brand (fb) ()
SELECT distinct p.Id,stato,FornitoreId,slug,prod_categoria,tipo,prod_nome,prod_nomelungo,prod_iva,prod_brand FROM prodotti p JOIN prodotti_sku s ON p.id = s.prodid WHERE p.stato IN (1,2) AND s.sku_stato = 1 AND prod_categoria IN (0,1,5,6,11,24,25,26,2,27,28,29,9,38,39,40,41,12,17,33,34,35,36,37,19,18,30,31,32,20,42,43,44,45,46,47,48,21,49,50,51,52,22,23,53,54,55,57) AND fornitoreId NOT IN (select id from fornitori where stato = 0) ORDER BY (SELECT sku_listino FROM prodotti a JOIN prodotti_sku b ON a.id = b.Prodid WHERE b.Prodid = p.id order by sku_listino limit 1) LIMIT 0,16