%d AND utimestamp < %d GROUP BY %s ORDER BY sum_bytes DESC LIMIT %d', $field_to_group, $start, $end, $field_to_group, $top ); $data = db_get_all_rows_sql($sql); return ($data !== false) ? $data : []; }