$rcmail = rcmail::get_instance();
$curr = $rcmail->db->query("
SELECT username FROM ".get_table_name('users')."
WHERE user_id=?",
$rcmail->user->ID);
and now the value of $curr is 3..
isn't it suppose to return the user-emailid..??
or is there any other method to execute the queries..??