diff --git a/jplayer_protect/jplayer_protect.admin.inc b/jplayer_protect/jplayer_protect.admin.inc
index 4104489..beab158 100644
--- a/jplayer_protect/jplayer_protect.admin.inc
+++ b/jplayer_protect/jplayer_protect.admin.inc
@@ -13,7 +13,7 @@ function jplayer_protection_statistics() {
   $output = '<p>' . t('This table shows the 50 top users who have been denied access to direct downloads of jPlayer files.') . '</p>';
 
   // TODO: convert to DBTNG.
-  $result = db_query("SELECT COUNT(1) as total, uid as user, MAX(timestamp) as timestamp FROM {jplayer_denied} GROUP BY uid ORDER BY total DESC, timestamp DESC LIMIT 50;");
+  $result = db_query("SELECT COUNT(1) as total, uid as user, MAX(timestamp) as timestamp FROM {jplayer_protect_denied} GROUP BY uid ORDER BY total DESC, timestamp DESC LIMIT 50;");
   $rows = array();
   foreach ($result as $denied) {
     $denied = (array)$denied;
@@ -24,13 +24,13 @@ function jplayer_protection_statistics() {
 
     // Find the top-denied file for the user.
     // TODO: convert to DBTNG.
-    $top_file = db_query("SELECT COUNT(fid) as fid_count, fid FROM {jplayer_denied} WHERE uid = :uid GROUP BY fid ORDER BY fid_count DESC LIMIT 1", array(':uid' => $uid))->fetchObject();
+    $top_file = db_query("SELECT COUNT(fid) as fid_count, fid FROM {jplayer_protect_denied} WHERE uid = :uid GROUP BY fid ORDER BY fid_count DESC LIMIT 1", array(':uid' => $uid))->fetchObject();
     $top_file = file_load($top_file->fid);
     $denied['file'] = str_replace($GLOBALS['base_url'], '', file_create_url($top_file->uri));
 
     // Find the top hostname for the user.
     // TODO: convert to DBTNG.
-    $top_hostname = db_query("SELECT COUNT(hostname) as hostname_count, hostname FROM {jplayer_denied} WHERE uid = :uid GROUP BY hostname ORDER BY hostname_count DESC LIMIT 1", array(':uid' => $uid))->fetchObject();
+    $top_hostname = db_query("SELECT COUNT(hostname) as hostname_count, hostname FROM {jplayer_protect_denied} WHERE uid = :uid GROUP BY hostname ORDER BY hostname_count DESC LIMIT 1", array(':uid' => $uid))->fetchObject();
     $denied['hostname'] = $top_hostname->hostname;
 
     $rows[] = $denied;
