What actually causes food poisoning, and which pathogens matter?
A small number of organisms account for most cases, and they behave differently enough that the same precaution does not work for all of them — which is why general advice to "cook things properly" is incomplete.
The ones that matter most:
Campylobacter — the most common cause of bacterial food poisoning in the UK, overwhelmingly from raw poultry. It does not need to multiply to make you ill; a very small dose is enough. This is why washing chicken is actively harmful — it aerosolises bacteria across the kitchen without reducing the number on the meat, which cooking would have killed anyway.
Salmonella, from poultry, eggs and cross-contamination. Vaccination of laying flocks has substantially reduced egg-related risk in some countries.
Norovirus, which is a virus rather than a bacterium, spreads person to person and via shellfish and contaminated surfaces, and is not affected by anything that kills bacteria. Alcohol gel works poorly against it; soap and water work.
Listeria, which is rarer and much more serious, particularly in pregnancy and for immunocompromised people. Its distinguishing feature is that it grows at refrigerator temperatures, which is why chilled ready-to-eat foods carry specific advice.
E. coli O157, from undercooked beef and cross-contamination, dangerous because of the small dose required and the severity in children.
Clostridium perfringens and Bacillus cereus, associated with food cooled and held badly rather than cooked badly.
Why symptom timing is informative. Very rapid onset — within hours — usually indicates a pre-formed toxin, which cooking does not destroy. Onset over a day or more indicates the organism multiplying in you.
What actually prevents most of it:
Separation of raw and ready-to-eat, including boards, hands and surfaces.
Cooking to temperature, not to appearance.
Cooling quickly and refrigerating within two hours.
Handwashing with soap.
Respecting use-by dates on high-risk chilled foods.
General information, not medical advice.