As I've mentioned before, pizza SHOULD only stand at room temperature for 2 hours at the most. This is the ideal time before bacteria could produce to deadly numbers. While in rare cases it's fine to leave pizza out for longer (like in the winter in a house without heating), it's better to avoid it altogether.