Error: 0 max(): Argument ($value) must contain at least one element

All of a sudden, the main page of my blog is showing a 404 error along with the message:
"Error: 0 max(): Argument ($value) must contain at least one element."

Even the editor panel for the category post layout is showing a 404 error.

However, the content is still present in the MySQL database, visible via phpMyAdmin under the Gridbox apps section.

I have attached a screenshot below. Appreciate your kind help.

Replies are visible only to logged in members with an active subscription.