不是不行 ,就是没必要这样做,效率太低 
select f.accDatetime,c.userName from friend f inner join custmer c on c.custmerId=f.friendId where f.userId='$id' limit 0,3