/* /home/audiofanet/www/services/prix/index,idmarque,34343,tri,categorie,idcat,16900.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='34343' AND ((ID_categorie=404) or (ID_categorie=3112) or (ID_categorie=3134) or (ID_categorie=10727) or (ID_categorie=10729) or (ID_categorie=10730) or (ID_categorie>=16300 and ID_categorie<=16850) or (ID_categorie>=16900 and ID_categorie<=17799) or (ID_categorie=73014) or (ID_categorie=81000) or (ID_categorie=82500) or (ID_categorie=83500) or (ID_categorie=84000) or (ID_categorie=84300) or (ID_categorie=408000) or (ID_categorie>=510000 and ID_categorie<=519900) or (ID_categorie>=520000 and ID_categorie<=529900) or (ID_categorie>=550000 and ID_categorie<=559900) or (ID_categorie>=590000 and ID_categorie<=599900) or (ID_categorie>=610000 and ID_categorie<=619900) or (ID_categorie>=630000 and ID_categorie<=639900) or (ID_categorie>=650000 and ID_categorie<=659900)) ORDER BY pa.id_categorie,produit.nom LIMIT 0,60
Unknown column 'pa.id_categorie' in 'order clause'