The main question and the question itself is: In derived tables, can I have many nesting levels?
Context:
I know that in MySQL you can't have correlated subqueries with two levels deep, but, using derived tables it seems that you can, is this normal or is there something I don't know, or does this 2 level thing only and STRICTLY affect correlated subqueries?
SELECT table3.field1, table3.field2, (SELECT table1.field1 FROM table1 WHERE table1.a = table3.field2) AS calculated,
(SELECT COUNT(*) FROM (SELECT * FROM table2 WHERE table2.c = table3.field2) AS derived) AS calculated2
FROM table3;