From MoodleDocs

Downgraded Moodle Core

ERROR!!! The code you are using is OLDER than the version that made these databases!

This error occurs during an incomplete update or after you restore your moodle instance from a previous backup and keep the database.

Upgrading moodle should allow for this error to be fixed immediately.