Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /var/www/html/ecosensornetwork/ecosensornet_web/models/ReportRequests.php:32 Stack trace: #0 /var/www/html/ecosensornetwork/ecosensornet_web/controllers/reporterController.php(128): ReportRequests::getById(NULL) #1 /var/www/html/ecosensornetwork/ecosensornet_web/controller.php(22): reporterController->generateChart() #2 {main} thrown in /var/www/html/ecosensornetwork/ecosensornet_web/models/ReportRequests.php on line 32