Issue using WHERE

Author: sxpphicdanversCreated Sep 24, 2026Updated Sep 24, 2026
Labelsbug

What happened?

Copied and pasted a dataview query from an older vault to my new one and yet the new one doesn't work.

Result in my old vault: Image

Result in my new one: Image

This happened to me once before but it just.. magically fixed itself. Everything is set up the exact same way, just the theme is different. The dataview works (obviously not as intended) if I take out the "WHERE" and it return this: Image

Does anyone know how to fix this?

DQL

dataview
TABLE pronouns as "Pronouns", shortdescription as "Description"
FROM #NPC 
WHERE location = this.file.link
SORT file.name asc

JS

javascript

Dataview Version

0.5.68

Obsidian Version

1.13.7

OS

MacOS

Source: blacksmithgu/obsidian-dataview