get_results("select count(comment_author) as cnt, comment_author, comment_author_url, comment_author_email from (select * from $wpdb->comments left outer join $wpdb->posts on ($wpdb->posts.id=$wpdb->comments.comment_post_id) where comment_date > date_sub( now(), interval $timer month ) and user_id='0' and comment_author != '".$outer."' and post_password='' and comment_approved='1' and comment_type='') as tempcmt group by comment_author order by cnt desc limit $limit"); foreach ($counts as $count) { $c_url = $count->comment_author_url; if (!$c_url) $c_url = 'javascript:;'; $type .= ''.get_avatar( $count->comment_author_email, $size = '64' , deel_avatar_default() ).''.$count->comment_author.''; } echo $type; }; ?>