TMI/Bug?

So I have had loose stools for over 2 weeks , a few times a day but I have just woken in the middle of the night to chronic diorreah. Since i heard that you should avoid castor oil because it can cause same affects to baby as it would to us. I am really worried that me having this will mean the baby has also. I don't want aby to be in distress and me not know. I haven't eaten anything other than dry solid foods so can't understand why my stomach is so bad.