From MyReport
`
`
$this->src('substantiator')
->query("
SELECT employee_title, w2_wages sum(employees.w2_wages) AS wages
FROM employees WHERE campaign='$campaign'AND email='$email'
JOIN employees ON employees.employee_title=titles.title
GROUP BY employees.employee_title
LIMIT 10
")
->pipe($this->dataStore("employees"))
->saveTo($EM);
From MyReport.view
2.4 Job Titles
<?php \koolreport\widgets\google\Table::create(array(
"dataStore"=>$this->dataStore("employees"),
"class"=>array(
"table"=>"table table-hover"
)
));
?>
`
`
I am getting:
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
File: /app/application/controllers/Configure.php Line: 1992 Function: run
File: /app/index.php Line: 315 Function: require_once