What do you need to do with SQL variables? Help me take a look.
But now~
@jairdaviscn try to use AND app in (${app:singlequote}). Basically just remove single quotes that are wrapping template variable.
AND app in (${app:singlequote})
It’s been taken care of. Thank you.