--等价的sql
select (
        select count(t.id) from fm_userphoto t,userinfo u where t.userid in (7,3667,3740) and datediff(mm,t.addtime,getdate())<4 and t.userid=u.id
       )
       +
       (
        select count(t.id) from musicok t,userinfo u where t.userid in(7,3667,3740) and datediff(mm,t.adddate,getdate())<4 and t.userid=u.id
        )