Not so much a csv generation issue, part of your problem seems that you are overwriting $content all the time. You'd probably want to use the concatenation operator to add to it rather?
$content .= $select[artist_name].",";
I'd do it slightly different though, like
$content[] = $select[artist_name];
and then outside the loop
implode(',', $content);