给定几个朋友 ID,我将如何检索所有标记了多个朋友的照片?
以下似乎没有检索所有照片(或在许多情况下):
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>))
我需要在朋友1和朋友2的相册中专门查询吗?