Why am I getting an error with this statement?
Error: could not prepare statement (1 near "t3": syntax error)
(Note: tables renamed for simplicity)
DELETE FROM table3 t3
INNER JOIN table2 t2 ON t2.tempId = t3.tempId
INNER JOIN table1 t1 ON t1.tempId = t2.tempId
WHERE t1.tempId = 9;