Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Salvador Mira
Table title:
Achievements
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Competition </th><th colspan=1 rowspan=1 > Venue </th><th colspan=1 rowspan=1 > Position </th><th colspan=1 rowspan=1 > Event </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <th colspan=6 rowspan=1 > Representing El Salvador </th></tr>
<tr> <td colspan=1 rowspan=1 > 2001 </td><td colspan=1 rowspan=1 > World Youth Championships </td><td colspan=1 rowspan=1 > Debrecen, Hungary </td><td colspan=1 rowspan=1 > 13th </td><td colspan=1 rowspan=1 > 10,000m walk </td><td colspan=1 rowspan=1 > 45:40.76 min </td></tr>
<tr> <td colspan=1 rowspan=4 > 2002 </td><td colspan=1 rowspan=1 > Central American and Caribbean Junior Championships (U-20) </td><td colspan=1 rowspan=1 > Bridgetown, Barbados </td><td colspan=1 rowspan=1 > 4th </td><td colspan=1 rowspan=1 > 10,000m walk </td><td colspan=1 rowspan=1 > 46:48.91 min </td></tr>
<tr> <td colspan=1 rowspan=1 > World Junior Championships </td><td colspan=1 rowspan=1 > Kingston, Jamaica </td><td colspan=1 rowspan=1 > – </td><td colspan=1 rowspan=1 > 10,000 m track walk </td><td colspan=1 rowspan=1 > DNF </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American Championships </td><td colspan=1 rowspan=1 > San José, Costa Rica </td><td colspan=1 rowspan=1 > 2nd </td><td colspan=1 rowspan=1 > 20,000 m track walk </td><td colspan=1 rowspan=1 > 1:39:14.27 hrs </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American and Caribbean Games </td><td colspan=1 rowspan=1 > San Salvador, El Salvador </td><td colspan=1 rowspan=1 > 4th </td><td colspan=1 rowspan=1 > 20 km walk </td><td colspan=1 rowspan=1 > 1:33:43 hrs </td></tr>
<tr> <td colspan=1 rowspan=1 > 2003 </td><td colspan=1 rowspan=1 > Central American Junior Championships </td><td colspan=1 rowspan=1 > San José, Costa Rica </td><td colspan=1 rowspan=1 > 1st </td><td colspan=1 rowspan=1 > 10,000 m track walk </td><td colspan=1 rowspan=1 > 47:12.64 </td></tr>
<tr> <td colspan=1 rowspan=1 > 2004 </td><td colspan=1 rowspan=1 > Central American Championships </td><td colspan=1 rowspan=1 > Managua, Nicaragua </td><td colspan=1 rowspan=1 > 2nd </td><td colspan=1 rowspan=1 > 20,000 m track walk </td><td colspan=1 rowspan=1 > 1:32:33.66 hrs NR </td></tr>
<tr> <td colspan=1 rowspan=3 > 2006 </td><td colspan=1 rowspan=1 > World Race Walking Cup </td><td colspan=1 rowspan=1 > La Coruña, Spain </td><td colspan=1 rowspan=1 > 40th </td><td colspan=1 rowspan=1 > 50 km walk </td><td colspan=1 rowspan=1 > 4:12:53 hrs </td></tr>
<tr> <td colspan=1 rowspan=1 > NACAC Under-23 Championships </td><td colspan=1 rowspan=1 > Santo Domingo, Dominican Republic </td><td colspan=1 rowspan=1 > 1st </td><td colspan=1 rowspan=1 > 20,000m walk </td><td colspan=1 rowspan=1 > 1:31:42 hrs </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American and Caribbean Games </td><td colspan=1 rowspan=1 > Cartagena, Colombia </td><td colspan=1 rowspan=1 > – </td><td colspan=1 rowspan=1 > 20 km walk </td><td colspan=1 rowspan=1 > DQ </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=2 > 2007 </td><td colspan=1 rowspan=1 > ALBA Games </td><td colspan=1 rowspan=1 > Caracas, Venezuela </td><td colspan=1 rowspan=1 > 1st </td><td colspan=1 rowspan=1 > 20 km walk </td><td colspan=1 rowspan=1 > 1:29:44 hrs </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > Pan American Games </td><td class="highlighted"  colspan=1 rowspan=1 > Rio de Janeiro, Brazil </td><td class="highlighted"  colspan=1 rowspan=1 > 4th </td><td class="highlighted"  colspan=1 rowspan=1 > 50 km walk </td><td class="highlighted"  colspan=1 rowspan=1 > 3:59.51 hrs NR </td></tr>
<tr> <td colspan=1 rowspan=2 > 2008 </td><td colspan=1 rowspan=1 > World Race Walking Cup </td><td colspan=1 rowspan=1 > Cheboksary, Rusia </td><td colspan=1 rowspan=1 > – </td><td colspan=1 rowspan=1 > 50 km walk </td><td colspan=1 rowspan=1 > DQ </td></tr>
<tr> <td colspan=1 rowspan=1 > Olympic Games </td><td colspan=1 rowspan=1 > Beijing, China </td><td colspan=1 rowspan=1 > – </td><td colspan=1 rowspan=1 > 50 km walk </td><td colspan=1 rowspan=1 > DQ </td></tr>
<tr> <td colspan=1 rowspan=1 > 2009 </td><td colspan=1 rowspan=1 > Pan American Race Walking Cup </td><td colspan=1 rowspan=1 > San Salvador, El Salvador </td><td colspan=1 rowspan=1 > 5th </td><td colspan=1 rowspan=1 > 50 km walk </td><td colspan=1 rowspan=1 > 4:15:48 hrs </td></tr>
<tr> <td colspan=1 rowspan=5 > 2013 </td><td colspan=1 rowspan=1 > Central American Race Walking Championships </td><td colspan=1 rowspan=1 > Ciudad de Guatemala, Guatemala </td><td colspan=1 rowspan=1 > 3rd </td><td colspan=1 rowspan=1 > 20 km walk </td><td colspan=1 rowspan=1 > 1:43:40 hrs </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American Games </td><td colspan=1 rowspan=1 > San José, Costa Rica </td><td colspan=1 rowspan=1 > 5th </td><td colspan=1 rowspan=1 > 20 km road walk </td><td colspan=1 rowspan=1 > 1:35:33 </td></tr>
<tr> <td colspan=1 rowspan=1 > Pan American Race Walking Cup </td><td colspan=1 rowspan=1 > Ciudad de Guatemala, Guatemala </td><td colspan=1 rowspan=1 > 25th </td><td colspan=1 rowspan=1 > 20 km road walk </td><td colspan=1 rowspan=1 > 1:37:39 </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American Championships </td><td colspan=1 rowspan=1 > Managua, Nicaragua </td><td colspan=1 rowspan=1 > 3rd </td><td colspan=1 rowspan=1 > 20,000 m track walk </td><td colspan=1 rowspan=1 > 1:35:43.46 </td></tr>
<tr> <td colspan=1 rowspan=1 > Central American and Caribbean Championships </td><td colspan=1 rowspan=1 > Morelia, México </td><td colspan=1 rowspan=1 > 4th </td><td colspan=1 rowspan=1 > 20 km road walk </td><td colspan=1 rowspan=1 > 1:42:44 </td></tr>
</table>
Question:
Where did Salvador Mira set a record of 3:59:51?
Answer:
Salvador Mira set a record of 3:59:51, by finishing fourth in the 50 km walk at the 2007 Pan American Games in Rio de Janeiro, Brazil.