My dermatologist prescribed me doxycycline pills to take twice a day about two months ago and I’ve been wondering what the possible side effects are besides bad stomach aches if taken without food.

There’s also an advisory on the bottle to avoid prolonged exposure to sunlight. What could happen if I’m out in the sun too long while taking these pills?