SELECT CONCAT((SELECT MAX(valuea) AS VALUE  FROM IReg WHERE idpath = 'INT\\SYSTEM\\MOTLAWA\\DaneFirmy' and idkey='Pelna_nazwa'),', ',(SELECT MAX(valuea) AS VALUE  FROM IReg WHERE idpath = 'INT\\SYSTEM\\MOTLAWA\\DaneFirmy' and idkey='REGON')) as dane