code: public static function findPublishedFromToByPids($intFrom, $intTo, $arrPids, $intLimit=0, $intOffset=0, array $arrOptions=array())
  	{
  		if (empty($arrPids) || !\is_array($arrPids))
  		{
  			return null;
  		}
  
  		$t = static::$strTable;
  		$arrColumns = array("$t.date>=? AND $t.date<=? AND $t.pid IN(" . implode(',', array_map('\intval', $arrPids)) . ")");
  
  		if (!static::isPreviewMode($arrOptions))
  		{
  			$time = Date::floorToMinute();
  			$arrColumns[] = "($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ($time + 60) . "') AND $t.published='1'";
  		}
  
  		if (!isset($arrOptions['order']))
  		{
  			$arrOptions['order']  = "$t.date DESC";
  		}
  
  		$arrOptions['limit']  = $intLimit;
  		$arrOptions['offset'] = $intOffset;
  
  		return static::findBy($arrColumns, array($intFrom, $intTo), $arrOptions);
  	}
docs: Find all published news items of a certain period of time by their parent ID
  
  @param integer $intFrom    The start date as Unix timestamp
  @param integer $intTo      The end date as Unix timestamp
  @param array   $arrPids    An array of news archive IDs
  @param integer $intLimit   An optional limit
  @param integer $intOffset  An optional offset
  @param array   $arrOptions An optional options array
  
  @return Collection|NewsModel[]|NewsModel|null A collection of models or null if there are no news