Error in sql:

select count(*) cnt from visitors where date='2017-10-23' and article_id=

Error: 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 '' at line 1