Gastos de envío 1.45€
¿Dudas?
Haz clic y pregunta
BLOG
¡envíos a 0,95€! 🦄
sólo hasta las 23:59
guapicornio
HMSMS
Inicio >

Tienda

Restablecer Filtros
Boxers
Tallas
-
OK
SELECT DISTINCT C3.id as level3id, C3.nombre_es as level3name, C3.urlamigable_es as level3url, C2.id as level2id, C2.nombre_es as level2name, C2.urlamigable_es as level2url, C1.id as level1id, C1.nombre_es as level1name, C1.urlamigable_es as level1url, count(0) as total FROM productos P JOIN categorias2 C3 ON P.categoriaid2=C3.id AND P.activo=1 AND P.eliminado=0 JOIN categorias2 C2 ON C3.padreid=C2.id JOIN categorias2 C1 ON C2.padreid=C1.id JOIN pedidos_linea PL ON PL.productoid=P.id WHERE C3.id!='113007' AND C2.id=113000 OR C2.padreid= GROUP BY C3.id HAVING total>5 ORDER BY total DESC LIMIT 25