title: Matching column of a table with current session
body: <p>I am trying to match the $username variable with the current session username (username of logged in account).</p>
  
  <p>I am using the following code but getting a parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING</p>
  
  <pre><code>$result = mysql_query("SELECT * FROM settings WHERE $username = $_SESSION['username']")
  </code></pre>