FIXED: all variables in query text were getting quoted.