AmbiguousColumn: column reference "description" is ambiguous
LINE 6: changetime AS _changetime, description AS _description,
^
SELECT COUNT(*) FROM (
SELECT p.value AS __color__,
( CASE status WHEN 'assigned' THEN 'Assigned' ELSE 'Owned' END ) AS __group__,
id AS ticket, summary, component, version, milestone,
t.type AS type, severity, time AS created,
changetime AS _changetime, description AS _description,
reporter AS _reporter
FROM ticket t
LEFT JOIN enum p ON p.name = t.severity AND p.type = 'severity'
WHERE t.status IN ('new', 'assigned', 'reopened' ) AND owner = ''||%s||''
ORDER BY ( t.status = 'assigned' ) DESC, t.type, p.value DESC, time
) AS tab
Note:
See TracReports
for help on using and creating reports.