Error 1065 – SQLSTATE: HY000 (ER_EMPTY_QUERY) “Query was empty” in MySQL
When you encounter the MySQL Error 1065, it means that you’ve attempted to execute an empty query – that is, there’s no actual SQL statement to be run. This can happen in various scenarios, such as a programming mistake where a query string remains uninitialized or is cleared before being sent to the database, or …