Fatal error: Uncaught Error: Call to a member function query() on null in C:\wwwroot\127.0.0.1\matchdata\counting.php:101 Stack trace: #0 C:\wwwroot\127.0.0.1\matchdata\seatscore.php(61): scorecount('2d', 'dbl', '1', '2', 'east') #1 {main} thrown in C:\wwwroot\127.0.0.1\matchdata\counting.php on line 101