Hate my job

Need some advice please. I really really hate my job. It makes me feel really down and I worry all the time about it. It's not so much the work it's the people! I have just found out I am pregnant so can't leave this job at the mo as I need my maternity pay which is really good. However I don't think I can stand working another 6 months there before I go on maternity leave. I really don't no what to do. I can't just leave the job as we need the money!!