Wp-theme Development

Please check how the Loop works, followed by the correct way to instantiate a new Query.

Try this:

<?php
        // The correct way to create a new Query
        $newquery = new WP_Query( array(
        'category_name'  => 'notice',
        'posts_per_page' => 1
        ));

        // Check if query found posts, then start the Loop
        if($newquery->have_posts) : while ($newquery->have_posts() ) : the_post();
           echo '<h1><a href="'.get_the_permalink().'">'.get_the_title().'</a></h1>';

             the_content();

        // End post iteration
        endwhile;

        // If query didnt find any posts
        else:

       echo 'No posts in the query';

        // End the Loop and reset the query
        endif; wp_reset_query();
?>

If nothing shows up, you should debug the query with:

var_dump($newquery);