/* /home/audiofanet/www/services/prix/index,idmarque,307,tri,categorie,idcat,10610.html */ SELECT DISTINCT nb_magasins AS nbannonces, prix_neuf_moyen AS prixavg, produit.id_categorie, produit.nom, produit.id, produit.moy1, produit.moy2, produit.moy3, produit.moy4, (produit.moy1+produit.moy2+produit.moy3+produit.moy4+nb_magasins/5)/5 AS popularite FROM produit JOIN produit_sp ON (produit_sp.ID_produit=produit.ID) WHERE id_marque='307' AND ((ID_categorie=3206) or (ID_categorie=5817) or (ID_categorie>=6400 and ID_categorie<=7450) or (ID_categorie=10620) or (ID_categorie=18500) or (ID_categorie>=19700 and ID_categorie<=20100) or (ID_categorie=20500) or (ID_categorie>=23100 and ID_categorie<=23230) or (ID_categorie>=23300 and ID_categorie<=24080) or (ID_categorie>=24090 and ID_categorie<=24255) or (ID_categorie>=24260 and ID_categorie<=24280) or (ID_categorie=42300) or (ID_categorie=42400) or (ID_categorie>=42600 and ID_categorie<=42625) or (ID_categorie=73030) or (ID_categorie=83000) or (ID_categorie=86000) or (ID_categorie=86600) or (ID_categorie=302500) or (ID_categorie=420000) or (ID_categorie>=570000 and ID_categorie<=579900) or (ID_categorie>=580000 and ID_categorie<=589900)) ORDER BY pa.id_categorie,produit.nom LIMIT 0,60
Unknown column 'pa.id_categorie' in 'order clause'