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='1' OR categorie='28' OR categorie='39' OR categorie='40' OR categorie='41' OR categorie='30' OR categorie='31' OR categorie='32' OR categorie='33' OR categorie='34' OR categorie='35' OR categorie='36' OR categorie='38' OR categorie='102' OR categorie='206' OR categorie='214' OR categorie='268' OR categorie='269' OR categorie='271' OR categorie='37' OR categorie='270' OR categorie='272' OR categorie='273')) AND EAN!='' AND date >= CURRENT_DATE - INTERVAL 14 DAY GROUP BY EAN ORDER BY clicks DESC LIMIT 50
Unknown column 'categorie' in 'where clause'