Index: /branches/slapshot/php/lib/mtdb_base.php
===================================================================
--- /branches/slapshot/php/lib/mtdb_base.php (revision 3776)
+++ /branches/slapshot/php/lib/mtdb_base.php (revision 3978)
@@ -88,5 +88,5 @@
                    and blog_id = fileinfo_blog_id
                    and template_id = fileinfo_template_id
-                   and template_identifier != 'backup'
+                   and template_type != 'backup'
                  order by length(fileinfo_url) asc
             ";
