1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
SELECT table_produits.prd_id, table_produits.reference, table_produits.prix_promo, table_produits.prix_ttc,
table_prd_categories.cat_code, table_produits.nouveauter, table_produits.destockage, table_produits.ref_couleur,
table_produits.sortie_de_collection, table_produits.top_vente, table_produits.coup_coeur, table_produits.vente_flash
FROM table_produits, table_descriptions, table_prd_categories
WHERE 1
AND table_produits.prd_id = table_descriptions.prd_id
AND table_produits.prd_id = table_prd_categories.prd_id
AND table_produits.actif=1
AND (table_prd_categories.cat_code LIKE '__20%' )
AND (table_prd_categories.cat_code LIKE '10%' OR table_prd_categories.cat_code LIKE '30%' OR table_prd_categories.cat_code LIKE '20%' )
AND ((table_produits.prd_id,'238') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'326') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'326') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'149') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'150') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'321') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'54') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'55') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'56') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'196') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) OR (table_produits.prd_id,'82') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'318') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'90') IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'308') NOT IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'309') NOT IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'310') NOT IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'311') NOT IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos) )
AND ((table_produits.prd_id,'17') NOT IN (SELECT table_prd_infos.prd_id, table_prd_infos.champs_options_id FROM table_prd_infos))
AND sortie_de_collection != 1
AND table_prd_categories.cat_code NOT LIKE '00%'
AND table_produits.prix_promo BETWEEN 0 AND 1500
GROUP BY table_produits.reference ORDER BY table_produits.prix_promo ASC,table_produits.prix_ttc ASC ,table_produits.reference
LIMIT 0,12 |
Partager