@friend_ids = "1,2,3"
@friend_blogs = BlogPost.find(:all, :order => "created_at DESC", :conditions => "user_id IN (#{@friend_ids})").first(8)
ActiveRecord::StatementInvalid (Mysql::Error: 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 ''') ORDER BY created_at DESC' at line 1: SELECT * FROM blog_posts WHERE (user_id IN '') ORDER BY created_at DESC):
thanks!