An Error Was Encountered

Error Number: 1064

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 'twirate.ru' at line 1

SELECT * FROM blog_posts WHERE id IN (SELECT DISTINCT post_id FROM blog_tags_xrefs WHERE tag_id=57) AND date <= CURDATE() ORDER BY id DESC LIMIT 10 OFFSET twirate.ru