get( 'secid' ,'') ; $catid = @$params->get( 'catid' ,'') ; $count = @$params->get( 'count' ,'5') ; $desc = @$params->get( 'desc' ,0) ; if($secid=='')$section=''; else $section="AND sectionid=$secid"; if($catid=='')$category=''; else $category="AND catid=$catid"; $rsa = $conn->SelectLimit("SELECT id,title,introtext,sectionid,catid,created,ordering,access,hits FROM #__content WHERE published = 1 $access_sql $category $section ORDER BY hits DESC",$count); if( is_array($rsa) ) { ?>