title: PHP JOIN LEFT WHERE wont work. what have i done wrong?
body: <pre><code> $sql= "SELECT name, content FROM {$dbpraefix}meta_global 
             UNION SELECT name, content FROM {$dbpraefix}meta_local 
             LEFT JOIN {$dbpraefix}pages ON {$dbpraefix}pages.id={$dbpraefix}meta_local.page 
             WHERE {$dbpraefix}pages.alias = $_GET['include']";
  </code></pre>
  
  <p>Hello Everyone. whats wrong with the last part of my code. </p>
  
  <pre><code>WHERE {$dbpraefix}pages.alias = $_GET['include']"
  </code></pre>
  
  <p>my page doesnt work. but if i throw the last part, it works well. 
  this is a part of my "build your own CMS" projekt.
  thanks for your answers.</p>