title: Phalcon Join Model Error
body: <p>If we want to join multiple tables into single query using query builder in Phalcon. It demands to have models created for all tables that need to be joined.</p>
  
  <p>Is this drawback or advantage?</p>
  
  <pre><code>$m = Firstmodel::query()
      -&gt;columns("col1, col2")
  
      -&gt;where("col3 = '2'")
  
      -&gt;join("model2", "col1 = col5", 'a')
      -&gt;join("model3", "col6 = col7", 'b')
  
      -&gt;orderBy("col1")
      -&gt;execute();
  </code></pre>
  
  <p>With one join query it works perfectly. But having 2 join queries like above gives be below error:</p>
  
  <pre><code>Scanning error before '] JOIN [] JOIN [...' 
  when parsing: SELECT col1, col2 FROM [Firstmodel] 
  JOIN [model2] AS [a] ON col1 = col5 
  JOIN [] JOIN [] JOIN [] JOIN [] WHERE col3 = '2' ORDER BY col1 (180)
  </code></pre>
  
  <p>Is there a alternate way to join tables without creating models?</p>