I am using FOR XML PATH to do a group concatenation however it is not grouping the colors as the final result.
select distinct m1.short_code ,m1.class_id1 ,m1