"select * from ( SELECT mc.id,mc.sn,mc.updated,mc.client_name,mc.brand,mc.mileage,mc.displace,mc.thumb, substring(substring_index(report,'"factime":{"val":"',-1),1,10) as newdate FROM `b_mc_report` as mc ) newtable ".$where." AND newtable.id > ".$maxid." LIMIT 5";