I would like to concatenate column names in a way that the first part of the column name is a string and the second part is a number which is the result of another query.
You can easily use following query:
SELECT group_concat( COLUMN_NAME) FROM information_schema.columns WHERE table_name ='your table name';