How to query multiple statements in medoo

how many statements are queried in medoo for example:

query classification category table:

cateid-name-parentid
1-clothes-0
2-shoes-0
3-short sleeves-1

query output classification + subclassification (only secondary, according to parentid output), want to get such a structure

array[
    ("cateid":"1","parentid":"0","name":"",
        "child":[
           ("cateid":"3","parentid":"1","name":"")
        ]
    ),
    ("cateid":"2","parentid":"0","name":"","child":[])
]

ask medoo how to cycle through the query and subquery

Mar.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3dd54-2c3c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3dd54-2c3c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?