Error calling wordpress Custom articles according to Custom Category

customized articles and categories, call does not display, search did not find, help to see where there is a problem, thank you

<?php
    $args=array(
        "hide_empty" => 0,
        "exclude"    => 0,
        "taxonomy"   => "cus_cat",
        );
    $cats=get_categories($args);
    foreach ($cats as $cat){
        $args = array(
        "post_type" => "cus_post",
        "tax_query" => array(
            array(
                "taxonomy" => "cus_cat",
                "field"    => "slug",
                "terms"    => $cat->slug,
            ),
        )
    );
    $posts = new WP_Query( $args);
        if(!empty($posts)){
            echo "<li>".$the_cat->name."</li>"
            foreach($posts as $post){
                echo 
                    "<li>
                        <a title="".wp_trim_words( get_the_excerpt(), 100 )."" href="".get_permalink($post->ID)."">".$post->post_title."</a>
                    </li>";
                }
                echo "<div class="clear"></div>";
            }
    };
?>
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-1b316ac-2bd99.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-1b316ac-2bd99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?