How can i fetch the value from database in a simple module?
Something like this should work:

/**
 * Implements hook_block_view
 */
function MY_MODULE_block_view($delta = '') {

  if (($node = menu_get_object()) &amp;&amp; ($node-&gt;type == 'product')) {      
    $query = db_select('uc_auction_bids', 'bids');
    $query-&gt;fields('bids');
    $query-&gt;condition('nid', $node-&gt;nid);
    $result = $query-&gt;execute()-&gt;fetchAllAssoc('bid');

    // Debug
    drupal_set_message('&lt;pre&gt;'.print_r($result,1).'&lt;/pre&gt;');

    $content = ''; // Format records here...

    return array(
      'subject' =&gt; t('Bids'),
      'content' =&gt; $content
    );   
  } 

}