diff --git a/objects/video.php b/objects/video.php index 6f374869d280..8fba85abb6e9 100644 --- a/objects/video.php +++ b/objects/video.php @@ -1464,7 +1464,7 @@ public static function getVideo($id = "", $status = Video::SORT_TYPE_VIEWABLE, $ } } if (strpos($sql, 'v.id IN') === false && !preg_match('/LIMIT\s+\d+/i', preg_replace('/\([^\)]*\)/', '', $sql))) { - $sql .= " LIMIT {$firstClauseLimit}1"; + $sql .= " LIMIT {$firstClauseLimit}1 -- added firstClauseLimit "; } $lastGetVideoSQL = $sql; //echo $sql, "
";//var_dump(debug_backtrace());exit;