You have an error in your SQL syntax near 'and articles.categoryID = blog_links.link_id LIMIT 0, 5' at line 1