group_concat(A,\' \',B,\' \',C) as Name,
then using this php for displaying
I don't understand what do you mean by line break between X and Y, but if you need the values to be comma separated you can add any separator to the Group_Concat like that:
group_concat(Name SEPARATOR ' ') as Name
and here is some other separators you can use.