Drop the ORDER BY + LIMIT, or the JOIN, and everything is peaches. Put them together and I seem to release the Kraken
ORDER BY
LIMIT
JOIN
t1 was not declared as an alias. Try t everywhere you have t1 (or vice versa).
t1
t