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 ') ORDER BY newstime DESC LIMIT 1' at line 1
SELECT COUNT(id) AS total FROM ***_ecms_article WHERE id IN() ORDER BY newstime DESC LIMIT 1;