1SELECT * FROM (
2 SELECT 'username','email'
3 UNION ALL
4 (
5 SELECT `username`,`email`,`steam_id` FROM `users` WHERE `userna` LIKE '%@temp%'
6 )
7) resulting_set
8INTO OUTFILE '/results/result.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';