it looks like you should use
$mypost = get_post($_POST['pid']);
$ogg = $mypost->post_title;
instead of
$ogg = get_post($post->ID, post_title);
it looks like you should use
$mypost = get_post($_POST['pid']);
$ogg = $mypost->post_title;
instead of
$ogg = get_post($post->ID, post_title);