In mysql, the error query multiple tables appear: Every derived table must have its own alias
Reason: the intermediate table or table select produced without the use of an alias .
Solution:
Table join the newly created alias:
E.g:
select * from select id, content from XXX as a;