Whoops, truncated the full path and forgot to remove the leading directory forward slash. I tried the full path and also relative paths, neither worked.
The error indicates it’s borking before the first word, which would (to me) generally indicate you’ve put something in front of the query that the engine doesn’t like. LOAD is a valid keyword for MySQL. Make sure there’s no strange characters lingering on the front end of your string, or if this is being chained by multiple queries, make sure the previous query was terminated correctly.
I double checked and there are no spurious characters.
The query was working just over a year ago and I think according to numerous searches that there has been security changes added which have caused the problem.
If someone has a PhpMyAdmin available, I would be grateful if they could try using a CSV file with a couple of lines and a test database table? The PHP query also fails and may be simpler to try.