fixes issue with mysql, but switching the concatenation of select values