title: CakePHP model, unknown column in fieldlist
body: <p>I have this model file:</p>
  
  <pre><code>// Myfan.php
  class Myfan extends AppModel {
      var $name = 'Myfan';
      var $useTable = 'myfans';
  
      function getAll(){
          return $this-&gt;find('all');
      }
  
  }
  </code></pre>
  
  <p>I try this query (which is simplified to isolate the problem) inside my controller class.</p>
  
  <pre><code>$Data=$this-&gt;Myfan-&gt;find('all',
              array(
                  'limit' =&gt; 10
          ));
  </code></pre>
  
  <p>From MySQL I get this error:</p>
  
  <pre><code>SQLSTATE[42S22]:
     Column not found: 1054 Unknown column 'Myfan.name' in 'field list'
  </code></pre>
  
  <p>My table structure like this:</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `myfans` (
    `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    `screen_name` varchar(50) CHARACTER SET utf8 NOT NULL,
    `age` int(20) DEFAULT NULL,
    `color` int(10) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=705314 ;
  </code></pre>
  
  <p>I removed <code>myapp_cake_model_default_mydatabase_myfans</code> file from <code>/httpdocs/app/tmp/cache/models</code> folder. Cake created file automatically but I still get the same error. How can I solve this?</p>
  
  <p>I even don't have "name" field inside my table now. But I'm not sure whether I had before or not. Where does Cake checks for that field?</p>
  
  <p><strong>Edit</strong>: I get the same error when I change query to this:</p>
  
  <pre><code>$Data=$this-&gt;Myfan-&gt;find('all', array(
          'conditions' =&gt; array('Myfan.screen_name' =&gt; $screenname),
          'order' =&gt; array('Myfan.id DESC')
      ));
  </code></pre>
  
  <p>Also my AppModel</p>
  
  <pre><code>// AppModel.php
  App::uses('Model', 'Model');
  
  class AppModel extends Model {
  }
  </code></pre>