Named query works in test but not when executed in script

I don't think those single quotes are Ignition/us marking things as a string. I think they're actually in the DB, attached to the data (:see_no_evil:)...