function setup()
{
$campaign=$_SESSION['campaign'];
$this->src('substantiator')
->query("SELECT bus_comp FROM business_components WHERE campaign=$campaign AND email='richb201@gmail.com'")
->pipe(new ColumnRename(array(
"bus_comp"=>"Business Component")))
->pipe($this->dataStore("business_components"))
->saveTo($BC);
}
This query line is causing:
An uncaught Exception was encountered Type: Error
Message: Call to a member function execute() on boolean
Filename: /app/vendor/koolreport/core/src/datasources/MySQLDataSource.php
Line Number: 384
Backtrace:
File: /app/vendor/koolreport/core/src/KoolReport.php Line: 315 Function: start