Erreur SQL !
SELECT SUM(clicks) as clicks, EAN, COUNT(*) as offres, MIN(t1.price) as bestprice, (SELECT product_name FROM flow WHERE EAN = t1.EAN ORDER BY clicks DESC LIMIT 1) AS nom FROM `flow` as t1 WHERE (product_name LIKE '%%' AND (categorie='179' OR categorie='5' OR categorie='7' OR categorie='13' OR categorie='14' OR categorie='15' OR categorie='16' OR categorie='47' OR categorie='68' OR categorie='70' OR categorie='71' OR categorie='72' OR categorie='73' OR categorie='74' OR categorie='75' OR categorie='155' OR categorie='156' OR categorie='157' OR categorie='158' OR categorie='159' OR categorie='160' OR categorie='175' OR categorie='176' OR categorie='177' OR categorie='178' OR categorie='203' OR categorie='199' OR categorie='200' OR categorie='222' OR categorie='223' OR categorie='224' OR categorie='225' OR categorie='226' OR categorie='227' OR categorie='228' OR categorie='229' OR categorie='230' OR categorie='231' OR categorie='232' OR categorie='233' OR categorie='249' OR categorie='198' OR categorie='180' OR categorie='181' OR categorie='183' OR categorie='184' OR categorie='193' OR categorie='194' OR categorie='195' OR categorie='196' OR categorie='197' OR categorie='201' OR categorie='202' OR categorie='215' OR categorie='216' OR categorie='217' OR categorie='218' OR categorie='219' OR categorie='220' OR categorie='221' OR categorie='234')) AND EAN!='' AND date >= CURRENT_DATE - INTERVAL 14 DAY GROUP BY EAN ORDER BY clicks DESC LIMIT 50
Unknown column 'categorie' in 'where clause'