When writing code, I nested a sql statement query and reported this error. I also reported this error after ensuring that the code was correct.
This is a common error. In lower versions of mysql, there may be a problem with the mysql query statement. It is recommended to check whether the sql statement is incorrect.