title: load another one model in default model
body: <p>I am trying to load another model in one default model. I have a <strong>profiles</strong> table in my database. but getting error. </p>
  
  <p><strong>User model</strong></p>
  
  <pre><code>App::uses('AuthComponent', 'Controller/Component');   
      class User extends AppModel {
  
            public function getProfileData(){
                  $this-&gt;loadModel('Profile');
                  $profileData = $this-&gt;Profile-&gt;findById('8');
                  print_r($profileData);
              }
      }
  </code></pre>
  
  <p><strong>Error :</strong></p>
  
  <pre><code> Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loadModel' at line 1
  
  SQL Query: loadModel 
  </code></pre>