DATABASE ERROR:
SELECT *, IFNULL(AVG(points), 0) as rating, COUNT(id) as votes
            FROM wfspc_article_ratings
            WHERE article_id = 
            GROUP BY article_id
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY article_id' at line 4