Prova detta: GROUP_CONCAT( DISTINCT CONCAT(tags.id,',',tags.displayName) ORDER BY posts.id SEPARATOR ';' )