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