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('2nt', 'no', '2', '1', 'west') #1 {main} thrown in C:\wwwroot\127.0.0.1\matchdata\counting.php on line 101