Can't find data record in database table glossary_entries.

More information about this error

Debug info: SELECT * FROM {glossary_entries} WHERE id = ?
[array (
0 => 315,
)]
Error code: invalidrecord
Stack trace:
  • line 1646 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 23 of /mod/glossary/showentry.php: call to moodle_database->get_record()