Exclude current file from LIST query

What I’m trying to do

Create a list of all of the main topics, where the outgoing links on every file is a subtopic. The problem is, my query includes the current file (which is simply a MOC) inside the list.

Things I have tried

I tried adding WHERE file.outlinks != this.file at the end of my query but it still includes it.
Here’s the full query:

LIST file.outlinks
FROM (#main-topic AND "COMPUTER SCIENCE/Session_1/FMCS")
WHERE file.outlinks != this.file

The last command should filter out the current file, but it doesn’t.