Changed sql string to heredoc
This commit is contained in:
parent
6519512924
commit
cebfdd6558
|
@ -147,9 +147,11 @@ class Application_Model_Show
|
|||
{
|
||||
$con = Propel::getConnection();
|
||||
|
||||
$sql = "SELECT subjs_id
|
||||
FROM cc_show_hosts
|
||||
WHERE show_id = :show_id";
|
||||
$sql = <<<SQL
|
||||
SELECT subjs_id
|
||||
FROM cc_show_hosts
|
||||
WHERE show_id = :show_id
|
||||
SQL;
|
||||
|
||||
$hosts = Application_Common_Database::prepareAndExecute(
|
||||
$sql, array( ':show_id' => $this->getId() ), 'all');
|
||||
|
|
Loading…
Reference in New Issue