So check line 5 and work it out
Here, I did it for you:
//Script order
<?php MainController::Run('PIREPS', 'RecentFrontPage'); ?>
//Content of frontpage_recent.tpl
<?php
$pir_sel = "SELECT * FROM pireps WHERE pilotid = 'Auth::$userinfo->pilotid' ORDER BY id DESC LIMIT 5";
$pir_go = mysql_query($pir_sql);
while($report = mysql_fetch_object) { ?>
<li><a href="<?php echo url('/pireps/viewreport/'.$report->pirepid);?>">#<?php echo $report->pirepid
. ' - ' . $report->code.$report->flightnum?> <span class="icon-align-left"></span><strong> Flying from <?php echo $report->depICAO . ' to ' . $report->arrICAO?></strong></a></li>
<?php
}
?>