Error: Call to a member function getActive() on null: mysqli_errno(): Argument #1 ($mysql) must be of type mysqli, bool given