While loop inside another while loop

I would create a custom query for each nested loop and loop on its post data. Similar to what is written about here.

You will probably need to save the post global to a temporary variable so it can be set back ( setup_postdata() ) at the end of the nested look.