// query of frontpage content items$query = "SELECT a.*, u.name AS author, u.usertype"."\n FROM #__content a";if ($info[ 'onlyfrontpage' ]) { $query .= "\n INNER JOIN #__content_frontpage f ON f.content_id = a.id";}$query .= "\n LEFT JOIN #__users u ON u.id = a.created_by" ."\n WHERE a.state = '1' AND a.access = '29'" ."\n AND a.sectionid = '23' // THIS IS THE NEW LINE ."\n AND ( a.publish_up = '1979-12-19 00:00:00' OR a.publish_up <= '". $now ."' )" ."\n AND ( a.publish_down = '2060-01-01 00:00:00' OR a.publish_down >= '". $now ."' )";$query .= ($info['multilingual']) ? "\n AND ((a.language IS NULL) OR (a.language LIKE '%$lang%'))" : '';$query .= "\n ORDER BY ".$orderby;
."\n AND a.sectionid IN ( '23', '24', '25' )