code: public function limit($intRows, $intOffset=0)
  	{
  		if ($intRows <= 0)
  		{
  			$intRows = 30;
  		}
  
  		if ($intOffset < 0)
  		{
  			$intOffset = 0;
  		}
  
  		if (strncasecmp($this->strQuery, 'SELECT', 6) === 0)
  		{
  			$this->strQuery .= ' LIMIT ' . $intOffset . ',' . $intRows;
  		}
  		else
  		{
  			$this->strQuery .= ' LIMIT ' . $intRows;
  		}
  
  		return $this;
  	}
docs: Handle limit and offset
  
  @param integer $intRows   The maximum number of rows
  @param integer $intOffset The number of rows to skip
  
  @return Statement The statement object