quick query fix on statistics.php