Can a WHERE query be added in Cook, I can see the group by that works ok on a foreign field
I can grab a parameter from the url ok because I can echo it out, how do I
select * from table name where category = $categoryid
I have tried adding WHERE `#__constructionprojects_projects.category` = `2` to the default query buildQueryWhere() section
function _buildQuery_default()
{
$query = ' SELECT a.*'
. ' , _category_.category AS `_category_category`'
. $this->_buildQuerySelect()
. ' FROM `#__constructionprojects_projects` AS a '
. ' LEFT JOIN `#__constructionprojects_categories` AS _category_ ON _category_.id = a.category'
. $this->_buildQueryJoin() . ' '
. $this->_buildQueryWhere()
. ' WHERE `#__constructionprojects_projects.category` = `2` '