freaking out

this is my first pregnancy and every thing freaks me out because i did have a miscarriage back in july today my doctor told me i had a blood clot near the baby that it can cause a miscarriage that i should stop having sex for two weeks and than they would do another sonogram has this happend to anyone before??

( is that the blood clot near the baby???? i had a transvaginal sonogram saturday)