Whoops, my apologies, I had this the wrong way around!
I was doing an import using “All-In-One WP Migration” and the import kept failing with the error I posted above.
Disabling “Query Manager” ‘resolved’ the problem and the import worked fine.
I got mixed up and thought this was a “All-in-One WP Migration” thread.
It’s not a problem for me as I’m happy to disable and re-enable Query Manager while I do the import, just though I’d let you know.