I don't know of an automatic way of doing it. You will definitely have to change the table join syntax. i.e. None of this:
Code:
SELECT * FROM table1 INNER JOIN (table2 INNER JOIN table3 ON table2.id = table3.parentid) ON table1.id = table2.parentid;
This would be rewritten as:
Code:
SELECT * FROM table1
INNER JOIN table2 ON table1.id = table2.parentid
INNER JOIN table3 ON table2.id = table3.parentid;