Front end is suddenly very slow, back-end works normal.

errors.log shows thousands of the following lines:

Warning: SQL query can't be run, it isn't table name selected on line# (file: )...