SELECT
a.libelle,
a.sous_famille_code,
a.Sous_famille_detail_code,
a.Sous_famille_detail_libelle,
a.prix_vente_courant,
a.article_type_code,
a.photo1,
a.photo2,
a.photo3,
a.photo4,
a.article_ID as product_id,
a.prix_vente_initial,
s.ville as store_location,
s.magasin_id,
s.ville
FROM
articles as a ,
magasins as s ,
type_sous_familles_detail_libelle fourth_cat
WHERE
a.Sous_famille_detail_libelle=fourth_cat.Sous_famille_detail_libelle AND
a.famille_code=fourth_cat.famille_code AND
a.sous_famille_code=fourth_cat.sous_famille_code AND
a.Sous_famille_detail_code=fourth_cat.Sous_famille_detail_code AND
s.magasin_code = a.magasin_code AND
s.abo_ok in (1,2) AND
a.famille_code = 'DECOTABLUM' AND
a.sous_famille_code = 'DECO' AND
a.Sous_famille_detail_code = 'DECO_1' AND
( a.Sous_famille_detail_libelle = 'Peintures à l\'huile' OR fourth_cat.IDType_sous_familles_detail_libelle=8 )AND
a.web_actif='OUI' AND
a.qte_stock > 0 AND
fourth_cat.language_code='fr'
ORDER BY
a.date_entree
DESC
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='