public function widget(){
global $wpdb;
echo $before_widget;
$sql = "SELECT post_title, post_content FROM wp_posts WHERE post_type='newspages' ORDER BY post_date DESC LIMIT 3";
$result = $wpdb->get_results($sql, ARRAY_A);
foreach($result as $news):
?>
<dl>
<dt>
<?php
echo $news['post_title'];
?>
</dt>
<dd>
<?php
echo $news['post_content'];
?>
</dd>
</dl>
<?php
endforeach;
echo $after_widget;
}