title: Error on Query with $_SESSION Var
body: <pre><code>$sth7 = $pdo7-&gt;prepare("SELECT usr FROM tz_members WHERE id = $_SESSION['id'];");
  </code></pre>
  
  <p>is giving me this error: </p>
  
  <pre><code>syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
  </code></pre>
  
  <p>How do I fix this?</p>