This copies the workaround introduced in the taproot-assets code base and will allow us to use `WHERE x in <list>` type queries.