SELECT `date`, `name`, `cash` FROM `stats` WHERE `date` BETWEEN $startDate AND $endDate ORDER BY `date` ASC group by `name` LIMIT $shift, $count
SELECT `date`, distinct `name`, `cash` FROM `stats` WHERE `date` BETWEEN $startDate AND $endDate ORDER BY `date` ASC LIMIT $shift, $count