/* /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=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))
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