CDbCommand, search with LIKE in andWhere

I have an andWhere with the problem that it will not work using params

->andWhere(' LIKE"%:search%" OR r.street LIKE"%:search%" OR LIKE"%:search%"', array(':search'=>$search))

it works if I do it like this

->andWhere(' LIKE"%'.$search.'%" OR r.street LIKE"%'.$search.'%" OR LIKE"%'.$search.'%"')

Is there something wrong my parameterized code? I really rather do it this way for safety but can’t get it to work.

->andWhere(' LIKE :search OR r.street LIKE :search OR LIKE :search', array(':search' => '%' . $search . '%'))

Thanks, that was my problem! Works perfect now.