title: Running mySQL query in PHP
body: <p>I'm having issues with trying to run my mySQL query as a query in php:</p>
  
  <p>This was the original mysql query:</p>
  
  <pre><code>SELECT *FROM clothing, sizing WHERE clothing.id = "101" AND sizing.type_id = clothing.type_id AND sizing.brand_id = clothing.brand_id;
  </code></pre>
  
  <p>I have tried editing it as the following:</p>
  
  <pre><code>$results = $connection-&gt;query("SELECT * FROM clothing,sizing WHERE clothing.id = {$_GET['id']}") AND sizing.type_id = clothing.type_id AND sizing.brand_id = clothing.brand_id;
  </code></pre>
  
  <p>The code will only work when I do the following:</p>
  
  <pre><code>$results = $connection-&gt;query("SELECT * FROM clothing,sizing WHERE clothing.id = {$_GET['id']}");
  </code></pre>
  
  <p>Is there a reason why this happens as I need to get it to display the full query on the second line?</p>
  
  <p>Thanks.</p>