Error: select distinct feeds.feed_icon as feed_icon,feeds.feed_domain as feed_domain,feeds.content_type as content_type from feeds as feeds,items as items where feeds.feed_domain<>'blogsearch.google.com' AND feeds.feed_domain<>'blogsearch.google.co.uk' AND feeds.feed_domain<>'google.com' AND feeds.feed_domain<>'google.co.uk' AND feeds.feed_domain<>'degraeve.com' AND feeds.feed_domain<>'twitter.com' AND feeds.artist_id= and feeds.feed_status='active' and feeds.feed_id = items.item_feed_id group by feeds.feed_domain
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 feeds.feed_status='active' and feeds.feed_id = items.item_feed_id group by ' at line 1