/* /home/audiofanet/www/services/prix/archives.html */ SELECT produit.nom, produit.ID as ID_produit, produit.ID_categorie, produit.ID_marque
FROM pa, produit, marque
WHERE produit.ID = pa.ID_produit
AND marque.ID=produit.ID_marque
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))
AND pa.pro=1 AND pa.pa_invalide=0
GROUP BY produit.ID
ORDER BY marque.nom_societe, produit.nom
Column 'ID_categorie' in where clause is ambiguous