title: SHA salt in MySQL query
body: <p>I am setting a cookie. Something like:</p>
  
  <pre><code>$_COOKIE['test'] = SHA1('124'.'mysalt');
  </code></pre>
  
  <p>Now 124 is my id which I want. So in my MySQL table, I am trying to run a query like:</p>
  
  <pre><code>$sql = ("SELECT * FROM users WHERE SHA1(`id`) = '".mysql_real_escape_string($_COOKIE['test'])."'");
  </code></pre>
  
  <p>How to add the "mysalt" to the SQL query? Because else I want get the correct id.</p>