Getting error 104 from Firebird

Windows 10, LO 6.4, Firebird 3.
Getting 104 Error when trying to execute an SQL Query. There is no LIMIT clause, yet I am getting a LIMIT error. Any ideas?

Screenshot1.odt

Look if LIMIT it’s the problem:

Hello,

Please do not attach a document which has an image (this one is incomplete) when you can simply attach the image to the question. Also, your attachment is not very helpful. From the contents, the limit clause is in the other query you are calling - Query_Player_Diff.

You don’t provide all the information but probably need to either move the limit statement or drop the Order By statement.