query escaping was interfering with view lookups.  need to find a better fix, but this will do for now