Mond
I thought I posted my reply yesterday but it looks like it never went through.
Anyways, from just briefly glancing at and reading the query it appears we are not limiting the SELECT statement based on the particular Task's ID. Rather, it appears it is searching through all Tasks which is not the intended functionality. As I mentioned above it will take some time for us to look into this as the legacy (current) codebase development has slowed down as we have shifted the majority of our focus on v2.0 (the full codebase rewrite).
Cheers.