GROUP_CONCAT DISTINCT属性があります: SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table