select m.nickname,GROUP_CONCAT(d.sku_name)
from jd_members m
left join jd_orders o on o.member_id = m.id
left join jd_order_detail d on o.id = d.order_id
GROUP BY nickname
select m.nickname,GROUP_CONCAT(d.sku_name)
from jd_members m
left join jd_orders o on o.member_id = m.id
left join jd_order_detail d on o.id = d.order_id
GROUP BY nickname