Script Query not working

Hello awesome community of ERPNext,

I am getting ‘undefined’ in all the records of a script report I wrote. Any idea why that would be the case? Attaching screenshots below for reference.

ERPNext version: 13.6.0
Frappe version: 13.6.0

Any help in identifying what is the problem is much appreciated. Thank you.