public function exec(Db $db) {
        $options = [
            'limit' => $this->limit,
            'offset' => $this->offset
        ];

        $r = $db->get($this->from, $this->where, $options);
        return $r;
    }
public function exec(Db $db) {
        $options = [
            'limit' => $this->limit,
            'offset' => $this->offset
        ];

        $r = $db->get($this->from, $this->where, $options);
        return $r;
    }
public function exec ( Db $ db ) { $ options = [ 'limit' => $ this -> limit , 'offset' => $ this -> offset ] ; $ r = $ db -> get ( $ this -> from , $ this -> where , $ options ) ; return $ r ; }
Execute this query against a database.

@param Db $db The database to query.
@return \PDOStatement Returns the query result.
Execute this query against a database .