-- ## 8: Active Tickets by Reporter ## -- SELECT p.value AS __color__, owner as __group__, id AS ticket, summary, component, milestone, t.type AS type, time AS _created, changetime AS _modified, description AS _description FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' WHERE status <> 'closed' ORDER BY (owner = $USER) DESC, owner, id DESC