title: Call to undefined method PDO execute
body: <p>I've get this error on the page. What can be the problem.. I've checked tons of thread here with the same problem and can't figured it out.</p>
  
  <pre><code>$ip_address = $_SERVER['REMOTE_ADDR'];
  $vote_rank = 0;
  $query = $pdo-&gt;prepare("SELECT SUM(vote_rank) as vote_rank FROM ipaddress_vote_map WHERE image_id = ? and ip_address = ?");
  $query -&gt; bindParam(1, $_GET['image_id'], PDO::PARAM_INT);
  $query -&gt; bindParam(1, $ip_address, PDO::PARAM_INT);                          
  $rowsa = $pdo-&gt;execute();
  $up = "";
  $down = "";
  
  if(!empty($rowsa[0]["vote_rank"])) {
     $vote_rank = $row[0]["vote_rank"];
     if($vote_rank == -1) {
         $up = "enabled";
         $down = "disabled";
     }
  if($vote_rank == 1) {
         $up = "disabled";
         $down = "enabled";
  }
  }
  </code></pre>