title: database user warning in drupal interface
body: <p>Here is the warning: </p>
  
  <p>user warning: Unknown column 'student2' in 'where clause' query: SELECT first, last, id FROM sgp_student_log WHERE username1 =student2 in .../public_html/includes/common.inc(1731) : eval()'d code on line 18.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>&lt;?
  global $user;
  $rus = db_query("SELECT first, last, id FROM {student_log} WHERE username1 =%s", $user-&gt;name); 
  $ruw = db_fetch_array($rus);
  print_r($ruw);
  ?&gt;
  </code></pre>
  
  <p>OF COURSE SOMETHING LIKE the following will work</p>
  
  <pre><code>&lt;?
  global $user;
  $res = db_query("SELECT first, last, id FROM {student_log} WHERE username1 ='student2'"); 
  $row = db_fetch_array($res);
  print_r($row);
  ?&gt;
  </code></pre>