Membership 2 Pro protected content

I want to output a post by custom query while the post is protected by Membership 2 Pro. But unable to do it. Is there any way to get around it? I want to show the post in the search.