Don't pass SQL to the tile method.
Pass the filters as a serialized string, and implement term filters for tiles.