Invalid query: SELECT a.*, feeds.title AS channel, feeds.image AS channel_image, feeds.region AS region FROM posts AS a LEFT JOIN feeds ON (a.feed = feeds.id) WHERE feeds.id = AND a.status != 'disabled' ORDER BY a.date DESC LIMIT 50
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 a.status != 'disabled' ORDER BY a.date DESC LIMIT 50' at line 4