title: PDO Database doesn't return rows, only returns query string (pdo object)
body: <p>I'm gonna go straight to the point:</p>
  
  <p><strong>Mysql DB</strong> tbl = mycars_gallery</p>
  
  <pre><code>|id|  car_id|img_thumb |img_link  |
  -----------------------------------
  |5 |    3   |thumb1.jpg|image1.jpg| 
  |6 |    3   |thumb2.jpg|image2.jpg| 
  |7 |    3   |thumb3.jpg|image3.jpg| 
  </code></pre>
  
  <p>I have 2 classes:</p>
  
  <p><strong>Upload.class.php</strong></p>
  
  <pre><code>class Upload
  {
  function __construct() 
  {
      // nothing
  }
  
  function deleteCarImgs($car_id,$arr_imgids)
  {   
      //weld all img ids and separate by commas
      $img_ids = implode(",",$arr_imgids);
  
      $sql = "SELECT img_link, img_thumb ";
          .= "FROM mycars_gallery WHERE car_id = :carid AND id IN(:imgids);"; 
  
      $params = array(
          ":carid" =&gt; $car_id,
          ":imgids" =&gt; $img_ids
      );
  
      //DB processing happens in Database class(100% working)
      $dbconn = new Database;     
      $rows = $dbconn-&gt;dbProcess($sql, $params); //doesnt run
  }
  }
  </code></pre>
  
  <p><strong>Cars.class.php</strong></p>
  
  <pre><code>class Cars
  {
  function __construct() 
  {
      // nothing
  }
  
  function deleteCompleteCar(3)//car_id is 3
  {
      $upload = new Upload();
  
      $arr_imgids = array(5,6,7);//these are img_id = 5,6,7 the ones I want to select
      $res = $upload-&gt;deleteCarImgs($id,$arr_imgids);
  
      var_dump($res);
  }
  }
  </code></pre>
  
  <p><strong>var_dump message:</strong></p>
  
  <pre><code>PDOStatement Object (     [queryString] =&gt; SELECT img_link, img_thumb FROM mycars_gallery WHERE car_id = :carid AND id IN(:imgids); )   
  </code></pre>
  
  <p><strong>What I need:</strong>
  All other functions are working correctly, but for this particular classes it seems to be broken. There are absolutely no errors that happen. Instead of getting the image links and thumbs, only query shows up when I use vardump. I have a feeling it has to do with 2 classes interacting with each other.</p>
  
  <p><strong>What I've already done:</strong></p>
  
  <ol>
  <li>I've ran sql query directly many times, it works</li>
  <li>I ran Database PDO functions through other classes, it works</li>
  <li>I also tried to get rid of implode() and passing a single digit string '7' to :imgsid token, still no luck, it actually returned NULL, instead of the PDO obj</li>
  </ol>
  
  <p>Thanks a lot in advanced.</p>