I’m doing simple database query, but i can’t found a properly way about how should be used ‘IN’ condition with bindParam(),
I could think it’s so easy like this
$sql="select * from user where firstname in :name";
$command= Yii::app()->db->createCommand($sql);
$command->bindParam(":name", $foo, PDO::PARAM_STR);
$command->queryAll();