Can you answer this brain teaser?

Posted on November 7, 2006

You are in a prison. There are two doors. One leads to freedom and the other leads to certain death. There are also two guards in front of the doors. One always tell the truth while the other one always lies. You can ask only one question to one of the guards before you open one of the doors. What question do you ask?