defined("BASEPATH") or die("No direct script access allowed");
class M_Leaderboard extends CI_Model {
public function getTopLink($start_date) {
$sql = "SELECT user_id, SUM(amount) as total_amount FROM link_history WHERE claim_time >= ? AND user_id <>