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();
|
$con = Propel::getConnection();
|
||||||
|
|
||||||
$sql = "SELECT subjs_id
|
$sql = <<<SQL
|
||||||
FROM cc_show_hosts
|
SELECT subjs_id
|
||||||
WHERE show_id = :show_id";
|
FROM cc_show_hosts
|
||||||
|
WHERE show_id = :show_id
|
||||||
|
SQL;
|
||||||
|
|
||||||
$hosts = Application_Common_Database::prepareAndExecute(
|
$hosts = Application_Common_Database::prepareAndExecute(
|
||||||
$sql, array( ':show_id' => $this->getId() ), 'all');
|
$sql, array( ':show_id' => $this->getId() ), 'all');
|
||||||
|
|
Loading…
Reference in New Issue