Fixed scaffold response export query.  Stupid logic.