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='21' OR categorie='23' OR categorie='24' OR categorie='25' OR categorie='126' OR categorie='127' OR categorie='128' OR categorie='129' OR categorie='130' OR categorie='131' OR categorie='132' OR categorie='133' OR categorie='134' OR categorie='135' OR categorie='136' OR categorie='137' OR categorie='138' OR categorie='139')) AND EAN!='' AND date >= CURRENT_DATE - INTERVAL 14 DAY GROUP BY EAN ORDER BY clicks DESC LIMIT 50
Unknown column 'categorie' in 'where clause'