not sure why it passed the tests but failed in practice, anyway, I've fixed a small bug where Query.set_fields would fail to unpack when building SQL