cc-4347: PDOOOOOOOOOOOOOOOO

This commit is contained in:
Rudi Grinberg 2012-09-06 14:17:24 -04:00
parent cd9e89560d
commit 264e909d5a
1 changed files with 3 additions and 2 deletions

View File

@ -145,9 +145,10 @@ class Application_Model_Show
$sql = "SELECT subjs_id
FROM cc_show_hosts
WHERE show_id = {$this->_showId}";
WHERE show_id = :show_id";
$hosts = $con->query($sql)->fetchAll();
$hosts = Application_Common_Database::prepareAndExecute(
$sql, array( ':show_id' => $this->getId() ), 'all');
return $hosts;
}