group_concat with distinct code example
Example 1: mysql group_concat distinct
SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table
Example 2: mysql separator
GROUP_CONCAT(artists.artistname SEPARATOR '----')