SELECT
deps.itemid as itemid1, tradeid.itemid as itemid2
FROM
deps
LEFT JOIN
tradeid
ON
deps.tradeid = tradeid.id
SELECT
items1.name as name1, items2.name as name2
FROM
(предыдущий запрос) ids
LEFT JOIN items items1 ON items1.id = ids.itemid1
LEFT JOIN items items2 ON items2.id = ids.itemid2