SELECT
MAX(blog_posts.posted_at) as max_posted_at,
MIN(blog_posts.posted_at) as min_posted_at
FROM blog_posts
LEFT OUTER JOIN blog_categories ON blog_posts.category_id = blog_categories.id
LEFT OUTER JOIN blog_accounts ON blog_posts.author_id=blog_accounts.id
WHERE
blog_posts.is_published = 1
AND blog_posts.tags LIKE '%CĂ´te d'Ivoire%'
ORDER BY blog_posts.posted_at DESC
LIMIT 0,1|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 'Ivoire%'
ORDER BY blog_posts.posted_at DESC
LIMIT 0,1' at line 9




