public function insertWithLastInsertId($query, &$lastInsertedId = null)
    {
        $done = $this->exec($query);
        if ($done) {
            $lastInsertedId = $this->lastInsertRowID();
        }
        return $done;
    }
public function insertWithLastInsertId($query, &$lastInsertedId = null)
    {
        $done = $this->exec($query);
        if ($done) {
            $lastInsertedId = $this->lastInsertRowID();
        }
        return $done;
    }
public function insertWithLastInsertId ( $ query , & $ lastInsertedId = null ) { $ done = $ this -> exec ( $ query ) ; if ( $ done ) { $ lastInsertedId = $ this -> lastInsertRowID ( ) ; } return $ done ; }
Run `exec` and append the last inserted row id
@param $query
@param null $lastInsertedId
@return bool
Run exec and append the last inserted row id