Index: comment_upload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/comment_upload/comment_upload.module,v
retrieving revision 1.7.2.10
diff -u -p -r1.7.2.10 comment_upload.module
--- comment_upload.module	11 Aug 2008 12:31:57 -0000	1.7.2.10
+++ comment_upload.module	15 Aug 2008 09:29:36 -0000
@@ -209,7 +209,7 @@ function comment_upload_file_download($f
  */
 function comment_upload_nodeapi(&$node, $op, $arg = 0) {
   if ($op == 'delete') {
-    $result = db_query("SELECT fid, nid, filepath FROM {comment_upload} cu INNER JOIN {files} f ON cu.fid = f.fid WHERE cu.nid = %d", $node->nid);
+    $result = db_query("SELECT cu.fid, cu.nid, f.filepath FROM {comment_upload} cu INNER JOIN {files} f ON cu.fid = f.fid WHERE cu.nid = %d", $node->nid);
     while ($row = db_fetch_array($result)) {
       // comment_upload_delete_file just needs a filepath and a fid.
       comment_upload_delete_file($row);
