NO, When I posted this, I made a typing error.
This is the script I am refering to:
/**
* StatsData::PilotAircraftFlownCounts()
*
* @param mixed $pilotid
* @return
*/
public static function PilotAircraftFlownCounts($pilotid) {
$key = 'ac_flown_counts_' . $pilotid;
$counts = CodonCache::read($key);
if ($counts === false) {
//Select aircraft types
$sql = 'SELECT a.name AS aircraft, COUNT(p.aircraft) AS count, SUM(p.flighttime) AS hours
FROM ' . TABLE_PREFIX . 'pireps p, ' . TABLE_PREFIX . 'aircraft a
WHERE p.aircraft = a.id AND p.pilotid=' . intval($pilotid) . '
GROUP BY a.name';
$counts = DB::get_results($sql);
CodonCache::write($key, $counts, 'medium');
}
return $counts;
}