SELECT id, nick_name, account_name, `call`,
IFNULL((SELECT SUM(c.money) FROM member_money_charge_history c WHERE c.member_idx=member.idx AND c.status=3),0) AS ch_sum_money,
IFNULL((SELECT SUM(d.money) FROM member_money_exchange_history d WHERE d.member_idx=member.idx AND d.status=3),0) AS ex_sum_money
,IFNULL((SELECT SUM(c.money) FROM member_money_charge_history c WHERE c.member_idx=member.idx AND c.status=3), 0)
            - 
 (IFNULL((SELECT SUM(d.money) FROM member_money_exchange_history d WHERE d.member_idx=member.idx AND d.status=3),0))
  AS gs
  ,reg_time
FROM mydb.member 
where u_business = 1 and status = 1 and level <> 9 and idx > 124;