You already have the hadithsection table in the first query. I think you may be able to delete the second recordset and use your original recordset and just add the SectionBD column to your first recordset. 
I tried that before but the problem is on the hadithsection table there are many row which have the same book id like a tree. Example Book is the main tree and sections are the branches.
I need to output the JSON as nested like several sections are belongs to one book ID


