General WordPress – Fixing Database Erros


I have the WP Developer plugin installed in my Multisite install. When I’m in the admin the Debug panel is reporting 7 DB Errors and they repeat the same error message:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IF’ at line 1

It also mentions this: SAVEQUERIES must be defined to show the query log.

MySQL database has crashed twice in the last week, once after simply updating a post and the other time I’m not sure what triggered it.

I have a lot of front-end dev experience but I’m not sure where to start or how to fix this. My hosting company is not helping. Any thoughts or guidance is greatly appreciated!