Erreur SQL !
SELECT count(distinct(ip)) as nbr, id_article FROM directory_local_bestarticle WHERE id_category = and time >= "2017-08-21" group by id_article order by nbr desc limit 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and time >= "2017-08-21" group by id_article order by nbr desc limit 1' at line 1