# HG changeset patch
# Parent 5966ce4d7b0d79eac41ab540071c5d11843edfef

diff --git a/trac/ticket/query.py b/trac/ticket/query.py
--- a/trac/ticket/query.py
+++ b/trac/ticket/query.py
@@ -459,7 +459,7 @@ class Query(object):
                           report=id,
                           order='|'.join(order) if order else None,
                           group=self.order[0] if self.group else None,
-                          col=cols,
+                          col='|'.join(cols) if cols else None,
                           row=self.rows,
                           max=max,
                           page=page,
@@ -1002,7 +1002,7 @@ class QueryModule(Component):
 
         cols = args.get('col')
         if isinstance(cols, basestring):
-            cols = [cols]
+            cols = cols.split('|')
         # Since we don't show 'id' as an option to the user,
         # we need to re-insert it here.
         if cols and 'id' not in cols:

