How would I retrieve all the photos that have multiple friends tagged given a few friend IDs?
The following doesn't seem to retrieve all photos (or any in many cases):
SELECT object_id, src_big FROM photo WHERE pid IN
(SELECT pid FROM photo_tag WHERE subject = me() AND pid IN
(SELECT pid FROM photo_tag WHERE subject=<friend ID1>)) AND pid IN
(SELECT pid FROM photo_tag WHERE subject=<friend ID2>))
Would I need to specifically query within friend 1 and friend 2's photo albums?