Yeah, this is likely due to Retool's prepared statements. See useful post on this here.
There's a potential workaround from @pyrrho here