title: Yii doesn't find model by a given attribute
body: <p>My password is not encrypted. I'm using it for a simple site. Anyway when I tried searching for a model by it's password </p>
  
  <pre><code>Yii::log("Password: " . CVarDumper::dumpAsString($this-&gt;password),'debug');
  $record = Guest::model()-&gt;findByAttributes(array('password'=&gt;$this-&gt;password));
  </code></pre>
  
  <p>When I log <code>$this-&gt;password</code> it does show that its initialized but <code>$record</code> returns null. However if I find it by its ID it does return something. Also I tried manually injecting the SQL on phpmyadmin it does work.</p>
  
  <p>Sorry, such a newbie here.</p>
  
  <p>Any inputs will be much appreciated.</p>
  
  <p>Thanks.</p>