Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\project\model\Company.php:6 Stack trace: #0 C:\xampp\htdocs\project\load.php(20): Company->InfoCompany() #1 C:\xampp\htdocs\project\index.php(5): require_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\project\model\Company.php on line 6