title: There is already an active transaction
body: <p>i have a code that use commit and rollback </p>
  
  <pre><code>$pdo = new dbpdo();
      $fields = ['id','last','first'];
      $values = [NULL,'asd','asd'];
      //$pdo-&gt;db-&gt;beginTransaction();
      try {
          $pdo-&gt;db-&gt;beginTransaction();
          //echo 'connected';
          //$pdo-&gt;InsertBatch('staff',implode(',',$data));
          //$pdo-&gt;InsertBatch('staff',implode(',',$fields), implode(',',$values));
          $pdo-&gt;InsertBatch('staff',$fields, $values);
          //$pdo-&gt;exec("INSERT INTO staff('id','first','last') VALUES ('NULL','asd','asd')");
          //$pdo-&gt;execute();
          $pdo-&gt;commit();
          //$message = 'success';
          echo 'Save';
      } catch (Exception $e) {
          //die("Unable to connect: " . $e-&gt;getMessage());
          $pdo-&gt;rollBack();
          //$message = 'sayop';
          //die("Unable to connect: " . $e-&gt;getMessage());
          echo "Failed: " . $e-&gt;getMessage();
      }
  </code></pre>
  
  <p>my question is . when i execute this . . is says. There is already an active transaction and data is has not save in database. . dbpdo class has extend PDO class. </p>