Wordpress - Exclude Current Post from Recent Posts Loop

This the post__not_in arg should work dandy for you:

$args = array(
    'numberposts' => 5,
    'offset' => 0,
    'category' => 7,
    'post__not_in' => array( $post->ID )
);
$myposts2 = get_posts($args);

Add this to your $args

'post__not_in' => array( get_the_ID() )

This way you won't have to deal with getting the current post ID and will potentially avoid errors with getting your ID. The get_the_ID() function just get the ID for you so you don't have to deal with or do anything.