I have a problem with mysql_fetch_object in the code below. Please help me to fix.
$query .= 'order by ts_uploaded DESC' ;
$result = mysql_query($query);
// format the return data, allows us to create key for thumbname
$items = array();
while ($row = mysql_fetch_object($result)) {
    $items[$row->id]['id']          = $row->id;
    $items[$row->id]['filename']    = $row->filename;
    $items[$row->id]['status']      = $row->status;
    $items[$row->id]['format']      = $row->format;
    $items[$row->id]['title']       = $row->title;
    $items[$row->id]['duration']    = $row->duration;
    $items[$row->id]['thumbnail']   = getThumbname($row->filename);
    $items[$row->id]['width']       = $row->width;
    $items[$row->id]['height']      = $row->height;
}
return $items;
}
 
     
     
    