I know the main causes of food poisoning are undercooked food (usually meat), cross contamination of foods, and poorly washed produce.

I'm curious, though, about if food is a little old or has gone bad - can you get FP from it if it's fully cooked? Does cooking kill all bacteria that may cause FP?

(I'm not asking because I plan to eat spoiled food - just curious)