以下のクエリ2から取得したsがWHERE (uid = {$uid} OR uid = **HERE** )
どこにあるかすべての行を選択したいと思います。**HERE**
cid
クエリ1:
SELECT * FROM `t_activities`
WHERE (`uid` = {$uid} OR `uid` = **HERE** )
AND `del` = 0
GROUP BY `fid`
ORDER BY `time` DESC
LIMIT 10
そしてクエリ2:
SELECT `cid` FROM `t_con` WHERE `uid` = {$uid} AND `flag` = 1