title: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause''
body: <pre><code>&lt;?php 
  require 'database.php';
  $id = 0;
  
  if ( !empty($_GET['user_id'])) {
      $id = $_REQUEST['user_id'];
  }
  
  if ( !empty($_POST)) {
      // keep track post values
      $id = $_POST['user_id'];
  
      // delete data
      $pdo = Database::connect();
      $pdo-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      $sql = "DELETE FROM admin  WHERE id = ?";  ===&gt; Wrong on here.. //LINE18
      $q = $pdo-&gt;prepare($sql);
      $q-&gt;execute(array($id));
      Database::disconnect();
      header("Location: index.php"); 
  
  } 
  </code></pre>
  
  <p>?></p>
  
  <p>somebody can help me? why i got 
  Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]</p>
  
  <p>sorry my english is bad,
  thanks</p>