Well, I have checked the database for corruption — one of the first things I did. I’ve tried turning off all plugins — doesn’t help.
If you note the error carefully, you’ll see that the query string is malformed. It says “SELECT , COUNT(*)”. Why is this happening?