How can I make this Cakephp request to be considered different?
$matches = $this->Product->find('count', array( 'conditions' => array( "Product.brand_id" => $brand['Brand']['id'], 'Product.active' => 1 ));
Something like that?
$matches = $this->Product->find('count', array( 'fields' => 'DISTINCT Product.brand_id', 'conditions' => array("Product.brand_id" => $brand['Brand']['id'], 'Product.active' => 1) ));