Duplicate tasks in query

Hi,
I’ve got a query

task where deadline > today() and done = false
render [[Library/Core/Query/Task]]

, but it repeats every task twice. If I remove the render part, it doesn’t repeat the tasks. The second repeat omits the tags from the task, but the first includes them.
The template just has
* [{{state}}] [[{{ref}}]] {{name}}

I can’t see any reason for the duplicated tasks.

Anyone seen this behaviour before?

Thanks.

I must say this doesn’t happen for me with this query?

I deleted my database files and restarted the server, and everything is back to normal!