select (SELECT name FROM mysql.help_category WHERE help_category_id = 1) as name, test=case 1 /* */ when 1 then "Some" when 2 then "Other" end /* */ AS /* */ foo FROM a;