title: How to select with a binary field ? (php,mysql)
body: <p>Try to select use "where" clause in a mysql statement:
  e.g.
  Table: X with a ID column which is BINARY data type. Then save in a variable in php</p>
  
  <pre><code>$aid = $row["id"];
  </code></pre>
  
  <p>How do i use this variable later when I try to select from table</p>
  
  <pre><code>$where = "where `ID` = '$aid'";
  $query = "SELECT * FROM X ".$where;
  </code></pre>
  
  <p>Return 0 row.</p>
  
  <p>Does anyone know why?</p>