Can not find data record in database table itcacademies.

More information about this error

Debug info: SELECT * FROM {itcacademies} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
  • line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 1117 of /report/itcacademy/lib.php: call to moodle_database->get_record()
  • line 90 of /local/itcacademy/contact.php: call to get_academy_courses()