Jewellery findings 18ct gold
FIRSTSELECT SQL_CALC_FOUND_ROWS _prix.id_article,_articles.uk,
IFNULL( _articles.titre_uk , IFNULL( _articles.titre_uk, _articles.titre_fr )) AS 'titre_uk', IF( _articles.titre_uk IS NULL , IF( _articles.titre_uk IS NULL , 'fr' , 'uk'), 'uk' ) AS 'titre_langue', _prix.ref_prix as 'reference', _articles.id_categorieA, _articles.id_categorieB, _articles.id_categorieC, _articles.selection , _prix.id_article, Tri_Caract.Nom_fr
FROM _articles
INNER JOIN _prix on _articles.id_article = _prix.id_article
LEFT OUTER JOIN Tri_Trieur on _prix.id_prix = Tri_Trieur.ID_Prix
LEFT OUTER JOIN Tri_Caract on Tri_Caract.ID_Caract = Tri_Trieur.ID_Caract3
WHERE _articles.uk = '1'
AND _prix.actif = '1'
AND ( (_prix.stock > 0 ) )
AND ( (_prix.indispo = 0 ) OR ( _prix.indispo = 1 AND _prix.indispo_date < ADDDATE(_prix.indispo_date, INTERVAL 7 DAY) ) )
AND _prix.SE = 1
AND _articles.id_categorieA = '2' AND _articles.id_categorieB = '474733' GROUP BY _articles.id_article, Tri_Trieur.ID_Caract3 ORDER BY _prix.date_miseenligne DESC, _articles.ordre, _articles.id_article DESC LIMIT 0, 12