SQL Syntax error - core 8.2.1

This might have something to do with it - the table name escaping:

Maybe updating to 8.5.7 first is the trick?