Try this ... I hope it may works
select a.* , b1.*
FROM table1 a
LEFT JOIN table2 b1
ON ( a.ID=b1.ID)
LEFT JOIN table2 b2
ON ( a.ID=b1.ID) AND
(b1.Time < b2.Time OR b1.Time = b2.Time AND b1.ID < b2.ID)
WHERE b2.ID IS NULL
GROUP BY a.ID ORDER BY b1.Time DESC