SyntaxFix
Write A Post
Hire A Developer
Questions
Using DISTINCT will work
SELECT GROUP_CONCAT(DISTINCT(categories) SEPARATOR ' ') FROM table
REf:- this