Index: uc_upsell_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_upsell/uc_upsell_admin.inc,v
retrieving revision 1.1.2.27
diff -u -p -r1.1.2.27 uc_upsell_admin.inc
--- uc_upsell_admin.inc	6 Sep 2009 02:35:22 -0000	1.1.2.27
+++ uc_upsell_admin.inc	15 Jan 2010 00:34:15 -0000
@@ -250,11 +250,9 @@ function upsell_products_admin() {
     'data' => t('Action'),
   );
 
-  $query = "SELECT n.title, p.nid, up.related_products FROM {uc_products} as p
-      LEFT JOIN {node} AS n
-      ON n.nid = p.nid
+  $query = "SELECT n.title, n.nid, up.related_products FROM {node} as n
       LEFT JOIN {uc_upsell_products} AS up
-      ON up.nid = p.nid
+      ON up.nid = n.nid
       WHERE n.status = 1
       AND n.type IN ('". implode("','", uc_product_product_types()) ."')
       ORDER BY n.title";
