I've five tables which is required to recieve the right information to some advanced custom menu inside a Wordpress project

Fundamental essentials five tables and also the posts I want

wp_term_taxonomy         - Need: term_id, taxonomy WHERE: taxonomy="nav_menu"
wp_terms                 - Need: term_id, name WHERE: term_id matches wp_term_taxonomy.term_id
wp_term_relationships    - Need: object_id, term_taxonomy_id WHERE: term_taxonomy_id matches wp_term_taxonomy.term_id
wp_postmeta              - Need: post_id, meta_key, meta_value WHERE: post_id matches wp_term_relationships.object_id AND meta_key="_menu_item_object_id"
wp_posts                 - Need: id, post_title, post_status, guid, post_parent, post_type WHERE: id matches wp_postmeta.meta_value

But that is not it I then need to:

wp_posts                 - Need: guid, post_parent, post_type WHERE: post_parent matches wp_posts.id AND post_type="attachment"
wp_postmeta              - Need: post_id, meta_key, meta_value WHERE: post_id matches wp_posts.id AND meta_key="description"

I really hope this will make somewhat sense.

What i am attempting to do is basicly, to produce a drop lower menu that consists of their email list of pages within the WordPress custom menu feature, take each page's featured image, as well as their Custom area Description where I've got a little text to show.

The ultimate menu appears like this with styling: http://alleveddet.dk/menu.png

To date I've had a succes making recption menus work, although not having a excellent kind of code:

<ul>
<?php 
    $getMenus = mysql_query('SELECT term_id, taxonomy FROM wp_term_taxonomy WHERE taxonomy="nav_menu"');
    while ($addMenus = mysql_fetch_assoc($getMenus)) { 
        $menus_id = $addMenus['term_id'];
?>
    <?php 
        $getTerms = mysql_query('SELECT term_id, name FROM wp_terms WHERE term_id='.$menus_id.'');
        while ($addTerms = mysql_fetch_assoc($getTerms)) { 
    ?>
        <li>
            <span class="menu-sub-headline"><?php echo $addTerms['name']; ?></span>
            <ul>
                <?php 
                    $getTermsRelationship = mysql_query('SELECT object_id, term_taxonomy_id FROM wp_term_relationships WHERE term_taxonomy_id='.$menus_id.'');
                    while ($addTermsRelationship = mysql_fetch_assoc($getTermsRelationship)) {

                    $termsRelationship = $addTermsRelationship['object_id'];

                    $getMetaRelationship = mysql_query('SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id='.$termsRelationship.' and meta_key="_menu_item_object_id"');
                    while ($addMetaRelationship = mysql_fetch_assoc($getMetaRelationship)) { 

                    $metaKeyValue = $addMetaRelationship['meta_value'];
                ?>
                <?php
                    $result = mysql_query('SELECT id, post_title, post_status, guid, post_parent FROM wp_posts WHERE id='.$metaKeyValue.'');
                    while ($row = mysql_fetch_assoc($result)) {
                ?>
                <li>
                <span><a href="<?php echo $row['guid']; ?>"><?php echo $row['post_title']; ?></a></span>
                <?php $thumb = $row['id']; ?>
                <ul class="menu-sub-sub-item-ul">
                    <li>
                        <span class="menu-product-headline"><?php echo $row['post_title']; ?></span>
                        <?php $getThumb = mysql_query('SELECT guid, post_parent, post_type FROM wp_posts WHERE post_parent='.$thumb.' AND post_type="attachment"');
                            while ($addThumb = mysql_fetch_assoc($getThumb)) {
                        ?>
                            <img src="<?php echo $addThumb['guid']; ?>"/>
                        <? } ?>
                        <?php $getMeta = mysql_query('SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id='.$thumb.' AND meta_key="description"'); 
                            while ($addMeta = mysql_fetch_assoc($getMeta)) {
                        ?>
                            <p><?php echo $addMeta['meta_value']; ?></p>
                            <a href="<?php echo $row['guid']; ?>"><img src="/wp-content/themes/mygind-co/images/design/read_more.png"/></a>
                        <?php } ?>
                    </li>
                </ul>
                <?php }}} ?>    
            </ul>
        </li>
    <? } ?>
<?php } ?>
</ul>

Hopefully, a number of you are able to assist me to attain the same result, however with a much better query and even perhaps explain me using joins proberly. I am quite a new comer to SQL, the reason behind my limited understanding. I've just before this browse the instructions of joins, making an effort myself, however it just appears such as this menu is a little too difficult to do learning from mistakes on for me personally.

So thanks ahead of time for everybody attempting to help!

Michael