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='17' OR categorie='6' OR categorie='123' OR categorie='124' OR categorie='20' OR categorie='18' OR categorie='19' OR categorie='60' OR categorie='61' OR categorie='62' OR categorie='154' OR 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' OR categorie='22' OR categorie='144' OR categorie='145' OR categorie='26' OR categorie='146' OR categorie='147' OR categorie='148' OR categorie='149' OR categorie='150' OR categorie='151' OR categorie='152' OR categorie='153' OR categorie='63' OR categorie='64' OR categorie='65' OR categorie='120' OR categorie='121' OR categorie='122' OR categorie='125')) AND EAN!='' AND date >= CURRENT_DATE - INTERVAL 14 DAY GROUP BY EAN ORDER BY clicks DESC LIMIT 50
Unknown column 'categorie' in 'where clause'