public function limit($from, $to = '') 
    {
        $this->sql .= ' LIMIT ' . $from;
        
        if(is_numeric($to)) {
            $this->sql .= ', ' . $to;
        }
        
        return $this;
    }
public function limit($from, $to = '') 
    {
        $this->sql .= ' LIMIT ' . $from;
        
        if(is_numeric($to)) {
            $this->sql .= ', ' . $to;
        }
        
        return $this;
    }
public function limit ( $ from , $ to = '' ) { $ this -> sql .= ' LIMIT ' . $ from ; if ( is_numeric ( $ to ) ) { $ this -> sql .= ', ' . $ to ; } return $ this ; }
Generate a limit statement.

@param int $from
@param int $to

@return object $this
Generate a limit statement .