Fatal error: Uncaught Error: Call to a member function query() on null in /var/www/html/webdev1/app/models/publics/Publics.php:249 Stack trace: #0 /var/www/html/webdev1/app/controllers/accounts.php(38): models\publics\Publics->getPackages() #1 /var/www/html/webdev1/app/core/App.php(37): Accounts->register() #2 /var/www/html/webdev1/index.php(3): App->__construct() #3 {main} thrown in /var/www/html/webdev1/app/models/publics/Publics.php on line 249