The code you pasted appears to have spaces in the column names. Is that correct? If so, then once way around this might be use switch to using something like:
#URLEncodedFormat(WADARSR['RSR Stock Number'])#
Or better yet, remove the spaces from outputs and update your SQL so that it selects the column name(s) with spaces and creates aliases for the columns without spaces. How to do that would depend on the database that you're using, but it might look something like this for MySQL:
SELECT `RSR Stock Number` as RSRStockNumber, ....
In MySQL, the ` character is an escape character. Is that block of code generated by DataAssist, or did you create this block of code and then drag in the data bindings from the Bindings panel?
FYI: it's considered bad practice to have spaces and any other special character in column names as it will cause issues within SQL and output of values from a query without taking steps to workaround them. Best to not have the spaces to begin with.