from tickets left join people on people.id=tickets.supporter_id left join companies on companies.id=tickets.company_id left join tpriorities on tpriorities.id=tickets.priority_id left join tstatus on tstatus.id=tickets.status_id left join purchase on purchase.id=tickets.purchase_id left join platforms on platforms.id=purchase.platform_id left join purchaseaction on purchaseaction.id=purchase.last_action left join contracts on contracts.id=purchase.contract_id