Cakephp 2.6.7 rawQuery bug
return $this->execute($sql, $params);
This was accepting two parameters instead of three and due to this was mistaking the $params value for the options value thus query was not run .query was being run as public function rawQuery($sql, $params = array()) {
$this->took = $this->numRows = false;
return $this->execute($sql, $params);
}Instead of public function rawQuery($sql, $params = array()) {
$this->took = $this->numRows = false;
return $this->execute($sql, array(), $params);
}It has subsequently been fixed .Issue is at this link .