Historical Data Dominator

Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in /var/www/efs/fbgsite/php/FBG/Router/Route/Tools/HistoricalDataDominator/HistoricalDataDominator.php:752 Stack trace: #0 /var/www/efs/fbgsite/php/FBG/Router/Route/Tools/HistoricalDataDominator/HistoricalDataDominator.php(752): mysqli_num_rows(false) #1 /var/www/efs/fbgsite/php/TN/Router/Router.php(276): FBG\Router\Route\Tools\HistoricalDataDominator\HistoricalDataDominator->respond() #2 /var/www/efs/fbgsite/public_html/router.php(9): TN\Router\Router->handle('/historical-dat...', '') #3 {main} thrown