It seems your query worked (the math logic)

excellent.
I think my version of MySQL [v3.23.58] is not letting me do the sub-query (I think) it is reporting errors.. Would this be the cause?
Other than that, I rewrote the query to:
Code:
SELECT sec_to_time( avg( unix_timestamp( responded ) - unix_timestamp( created ) ) ) AS avg_response_time
FROM troubleticket
WHERE priority = '3'
ORDER BY id DESC LIMIT 30
Returned: 38:05:25
I think that will do the same logic? or am I off a little? I'm wondering what the results would be if I was able to use your full query..
Thanks
Peter