Server-side filter returns SQL error when using "contains" or "starts with" clauses

Hi,

How can I use IN clause in here. I Mentioned my query like this one

SELECT * FROM (post) WHERE post.user_id IN (SELECT follow.following_id from follow WHERE follow.user_id=’".$user_id."’ ) OR post.user_id = ‘".$user_id."’ AND post.private_post = 0 ORDER BY post.created desc