diff --git a/application/models/Shows.php b/application/models/Shows.php index cc2e2adb9..cf3ff23b1 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -119,7 +119,7 @@ class Show { FROM cc_show_instances LEFT JOIN cc_show ON cc_show.id = cc_show_instances.show_id WHERE ((starts >= '{$start_timestamp}' AND starts < '{$end_timestamp}') - OR (ends > '{$start_timestamp}' AND ends <= '{$end_timestamp}')); + OR (ends > '{$start_timestamp}' AND ends <= '{$end_timestamp}'))"; if(isset($excludeInstance)) { foreach($excludeInstance as $instance) { @@ -131,7 +131,7 @@ class Show { $sql = $sql." AND ({$exclude})"; } - echo $sql; + //echo $sql; return $CC_DBC->GetAll($sql); }