public function getLastInsertID($sequenceName = '') { if ($this->getActive()) { return $this->_pdo->lastInsertId($sequenceName); } else { throw new TDbException('dbconnection_connection_inactive'); } }