If you want to show the order, then make sure to select the order table (not the order details table). and on your detail page, you will add an additional query to get the entries from the order detail page.
Let me know if I did not answer your question correctly.