07e9b15579
The final query is missing this and does not work without it.
(cherry picked from commit 5c69f899b5)
Co-authored-by: Teppo Kurki <teppo.kurki@iki.fi>