diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index dc88e151d..0323ac330 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -468,14 +468,15 @@ SQL; */ public function getRebroadcastsRelative() { - $con = Propel::getConnection(); - - $showId = $this->getId(); - $sql = "SELECT day_offset, start_time FROM cc_show_rebroadcast " - ."WHERE show_id = $showId " - ."ORDER BY day_offset"; - - return $con->query($sql)->fetchAll(); + $sql = << $this->getId() ), 'all' ); } /**