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(40): scorecount('3s', 'no', '0', '9', 'north') #1 {main} thrown in C:\wwwroot\127.0.0.1\matchdata\counting.php on line 101