=== modified file 'uc_attribute/uc_attribute.admin.inc'
--- uc_attribute/uc_attribute.admin.inc	2011-01-05 21:02:06 +0000
+++ uc_attribute/uc_attribute.admin.inc	2011-01-05 21:02:08 +0000
@@ -792,7 +792,7 @@
       // prevents the db_prefix from being appended.
       $select = db_select('uc_attribute_options', 'ao')
         ->where('{' . $opt_table . '}.oid = ao.oid')
-        ->condition('ao.oid', $remove_aids, 'IN');
+        ->condition('ao.aid', $remove_aids, 'IN');
       $select->addExpression('1');
       db_delete($opt_table)
         ->condition('', $select, 'EXISTS')

