Coffee doesn't go bad, but if you leave it out for a long time, the beans can go rancid, and the taste quality will decline. Other than that, it won't affect you much.
However, if you have brewed coffee sitting around for a long time, it will eventually get moldy. While drinking stale coffee won't have severe side effects, you may still feel a slight stomach ache.