$othervotes = $db->query_read("SELECT team, rankem_team.teamid, sum(points) AS totalpointsFROM rankem_rankINNER JOIN rankem_team ON rankem_team.teamid = rankem_rank.teamidWHERE rankem_rank.weekid = $weekGROUP BY rankem_team.teamidORDER BY totalpoints DESC LIMIT 25,100");if ($db->num_rows($othervotes) > 0){while ($others = $db->fetch_array($othervotes)){eval('$otherbits .= "' . fetch_template('rank_otherbits') . '";');}$otherbits = trim($otherbits, ', ');}