Index: trac/ticket/api.py
===================================================================
--- trac/ticket/api.py	(revision 3103)
+++ trac/ticket/api.py	(working copy)
@@ -161,7 +161,7 @@
         if intertrac:
             return intertrac
         cursor = formatter.db.cursor()
-        cursor.execute("SELECT summary,status FROM ticket WHERE id=%s",
+        cursor.execute("SELECT status,summary FROM ticket WHERE id=%s",
                        (target,))
         row = cursor.fetchone()
         if row:

