Fix 'average towage time' sql query #818