Because the function as written returns an SQL fragment with placeholders rather than splicing in the values passed to it. With the ORM patch I mentioned above, I just pass in `types` and `week_ago` directly.