mysql group by 需要获取最后一条数据
$user_sql = "select mid,year(from_unixtime(ref_date)) as year,month(from_unixtime(ref_date)) as month,user_source as all_user "; //综合 $order_by_sql = " (select user_source,mid,re...