I am passing:
Yii::app()->db->createCommand($query)->queryAll(true,array(':bizid'=>$params));
The query:
SELECT DISTINCT(BI.item_name)
FROM items BI
WHERE BI.b_id IN (:bizid) ORDER BY BI.item_name ASC
The query failes to find results, but this query gets the results:
SELECT DISTINCT(BI.item_name) as i_name FROM blacklist_items BI WHERE BI.business_id IN (165,664,842,866,1234,3007,3030,3031,3032) ORDER BY BI.item_name ASC
Why does queryAll fail?