You've heard of eating comfort food to make you feel better, but did you know eating fast food may be linked to clinical depression?

Researchers in Spain claim that depression is 51 percent more likely to occur in people who consume large amounts of fast food — like hamburgers, hot dogs and pizza — compared to those who don't.

"The more fast food you consume, the greater the risk of depression," Almudena Sanchez-Villegas, lead author of the study, said in a statement.

And don't forget about other junk food items, like doughnuts and croissants. According to the study, they are also linked to mood problems.

But experts suggest that it may not be the food that is causing the depression.

"Higher intake of fast food may very well increase risks of depression by causing poor health in general," said Dr. David Katz, director of Yale University's Prevention Research Center in New Haven, Conn. "But depression may also increase fast food intake."

Read more from ABC News.