query("INSERT INTO $sequence (vapor) VALUES (0)"); $stmt = $this->query("SELECT @@IDENTITY FROM $sequence"); $data = $stmt->fetch(PDO::FETCH_NUM); return $data[0]; } } ?>