I suppose the title of the thread says it all. Am I missing something here??

PHP Code:
function getTop10($connection) {
    
$sql "SELECT DISTINCT(track_page) FROM site_stats ORDER BY track_page DESC LIMIT 1, 10";
    if(!
$result mysql_query($sql,$connection)) {
        echo 
"Error 002: Top 10 Pages are unavailable at this time";
    } else {
        
$topPages mysql_fetch_array($result);
        
$i 1;                
        while(
$i 11) {    
            echo 
$topPages['track_page'] . "<br />\n";
        }                                                                                    
    }
//end else                        
//end function