Re: using friends_check_friendship
I fixed this, I decided to come back and post the solution incase others try to use this same function throughout their site.
I was right about the failure being “$bp”, all I did was finally hardcode the value of that into the db query. it should be wp_bp_friends if you left everything as default, but if for security reasons you used a different table header yours may look different so make sure you get it right or it will stop working for friend wire posting and other friend based features.
The reason I use this is for a friends only posting feature I added to my site which allows users now to make a post that can only be read by those on the friends list.