GROUP_CONCAT(Id SEPARATOR ',') returns different values each time in MYSql code example
Example: mysql group_concat distinct
SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table
SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table