function sm_list_recent_searches($before = '', $after = '', $count = 20) {
// List the most recent successful searches.
    $aqqq = array('132');
    global $wpdb, $table_prefix;
    $count = intval($count);
    $results = $wpdb->get_results(
        "SELECT `terms`, `datetime`
        FROM `{$table_prefix}searchmeter_recent`
        WHERE 0 < `hits`
        ORDER BY `datetime` DESC
        LIMIT $count");
    if (count($results)) {
        echo "$before\n<p>\n";
        foreach ($results as $result) {
            if (!in_array($result,$aqqq)) {
            array_push($aqqq, "$result");
            echo '<a href="'. get_settings('home') . '/search/' . urlencode($result->terms) . '">'. htmlspecialchars($result->terms) .'</a>, '."\n";
           }
        }
        echo "</p>\n$after\n";
    }
}
böyle denermisin. bir array yarattik. echo edilirken array da o term warmi baktik. yoksa bastik echo ve array a ekledik.