Here is what i'm looking for:
select author_uid, tagged_uids, page_id from location_post where author_uid = me() or ( author_uid in (select uid2 from friend where uid1=me()) and me() in tagged_uids)
When i split the queries they return the expected results.
i.e, both
- select author_uid, tagged_uids, page_id from location_post where author_uid = me()
- select author_uid, tagged_uids, page_id from location_post where author_uid in (select uid2 from friend where uid1=me()) and me() in tagged_uids
work as expected. What I need is a union of the 2. I'm tempted to say this is either a bug (or a limitation) in the API
Note:
- The OR clause itself works if the hard code one of my friend's id and my id. i.e author_uid=<my-id> or (author_uid=<frnd-id> and <my-id> in tagged_uids)