SELECT group_concat(u.prize) AS prize, group_concat(u.code) AS code FROM `lc_unique` AS u INNER JOIN `lc_baoming` AS b ON u.webcookie = b.webcookie GROUP BY u.webcookie