You’re going to need to set that name as a parameter in your integration code. Your datasource is an RDS, populated by an sql statement, the function it trying to run against the datasource, which can’t run sql functions.

you may add ‘Name’ to every row of data you pull down too.