mysql group_concat distinct
snippet in sql

mysql group_concat distinct

user2182

SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table