Index: openacs-4/packages/download/sql/postgresql/download-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/download/sql/postgresql/download-create.sql,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/download/sql/postgresql/download-create.sql	12 Mar 2004 19:19:47 -0000	1.7
+++ openacs-4/packages/download/sql/postgresql/download-create.sql	12 Sep 2013 10:26:11 -0000	1.8
@@ -331,14 +331,15 @@
               da.archive_id, 
 			  da.archive_type_id, 
 			  da.archive_desc_id,
-              desc_item.title as summary, 
-			  desc_item.description as description, 
-			  desc_item.mime_type as description_type,
-              desc_item.creation_user, 
-			  desc_item.creation_date, 
-			  desc_item.creation_ip 
-       from download_archives da, cr_items cri, download_archive_descsi desc_item
-	   where da.archive_desc_id = desc_item.revision_id and 
+              crr.title as summary, 
+			  crr.description as description, 
+			  crr.mime_type as description_type,
+              o.creation_user, 
+			  o.creation_date, 
+			  o.creation_ip 
+       from download_archives da, cr_items cri, cr_revisions crr, acs_objects o
+	   where da.archive_desc_id = crr.revision_id and 
+                         da.archive_desc_id = o.object_id and
 			 da.archive_id = cri.item_id;
 
 create view download_arch_revisions_obj as
