query_posts() vs get_posts() multiple loops [duplicate]

Thanks to tips given by the commentators I was able to achieve this 🙂

    <?php 
if ( is_front_age() ){
                    $most_viewed_posts = new WP_Query( array('v_sortby' => 'views', 'v_orderby' => 'DESC', 'showposts' => 10, 'cat'=> 3) );
                    }
                    while ( $most_viewed_posts->have_posts() ) : $most_viewed_posts->the_post(); ?>

//post structure

 <?php wp_reset_postdata(); ?>