Mysql nested subquery

one-level subquery can get the result correctly, and multi-layer nested subquery reports an error. Is there any other way to avoid reporting an error

select (select id from a where user_id=b.id), b. * from b;-- this can get normal results

select (select a.id from (select id from a where user_id=b.id) a), b.* from bbetsu-this meeting will be published by Unknown column "b.id" in "where clause"

Mar.20,2021
Menu