object(Zend_Db_Statement_Sqlsrv_Exception)#59 (8) {
  ["_previous":"Zend_Exception":private] => NULL
  ["message":protected] => string(136) "[Microsoft][SQL Server Native Client 11.0][SQL Server]Неправильный синтаксис около конструкции ")"."
  ["string":"Exception":private] => string(0) ""
  ["code":protected] => int(102)
  ["file":protected] => string(59) "Z:\home\193.124.113.31\www\lib\Zend\Db\Statement\Sqlsrv.php"
  ["line":protected] => int(206)
  ["trace":"Exception":private] => array(10) {
    [0] => array(6) {
      ["file"] => string(52) "Z:\home\193.124.113.31\www\lib\Zend\Db\Statement.php"
      ["line"] => int(320)
      ["function"] => string(8) "_execute"
      ["class"] => string(24) "Zend_Db_Statement_Sqlsrv"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => array(0) {
        }
      }
    }
    [1] => array(6) {
      ["file"] => string(59) "Z:\home\193.124.113.31\www\lib\Zend\Db\Adapter\Abstract.php"
      ["line"] => int(479)
      ["function"] => string(7) "execute"
      ["class"] => string(17) "Zend_Db_Statement"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => array(0) {
        }
      }
    }
    [2] => array(6) {
      ["file"] => string(59) "Z:\home\193.124.113.31\www\lib\Zend\Db\Adapter\Abstract.php"
      ["line"] => int(775)
      ["function"] => string(5) "query"
      ["class"] => string(24) "Zend_Db_Adapter_Abstract"
      ["type"] => string(2) "->"
      ["args"] => array(2) {
        [0] => string(655) "
						WITH movieids
						AS
						(SELECT DISTINCT MovieID FROM Top250 WHERE Votes >= ),
						orderedvotes
						AS
						(SELECT t.MovieID, t.Date, t.Rating,Votes, ROW_NUMBER() OVER(PARTITION BY t.MovieID ORDER BY Votes) row
						 FROM Top250 t
						 JOIN movieids m ON t.MovieID = m.MovieID 
						 WHERE Votes >= 
						)
						SELECT mo.IMDB,	mo.OrName Title, Born Year,mo.[Top],
							t.Date var, t.Rating AvgRating, t.Votes
						FROM movieids m 
						LEFT JOIN Movie mo ON m.MovieID = mo.Code
						LEFT JOIN orderedvotes t ON t.MovieID = m.MovieID 
						WHERE t.row = 1
						ORDER BY t.Rating DESC, t.Date
					  
					"
        [1] => array(0) {
        }
      }
    }
    [3] => array(6) {
      ["file"] => string(49) "Z:\home\193.124.113.31\www\lib\Models\Listing.php"
      ["line"] => int(1351)
      ["function"] => string(10) "fetchAssoc"
      ["class"] => string(24) "Zend_Db_Adapter_Abstract"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => string(655) "
						WITH movieids
						AS
						(SELECT DISTINCT MovieID FROM Top250 WHERE Votes >= ),
						orderedvotes
						AS
						(SELECT t.MovieID, t.Date, t.Rating,Votes, ROW_NUMBER() OVER(PARTITION BY t.MovieID ORDER BY Votes) row
						 FROM Top250 t
						 JOIN movieids m ON t.MovieID = m.MovieID 
						 WHERE Votes >= 
						)
						SELECT mo.IMDB,	mo.OrName Title, Born Year,mo.[Top],
							t.Date var, t.Rating AvgRating, t.Votes
						FROM movieids m 
						LEFT JOIN Movie mo ON m.MovieID = mo.Code
						LEFT JOIN orderedvotes t ON t.MovieID = m.MovieID 
						WHERE t.row = 1
						ORDER BY t.Rating DESC, t.Date
					  
					"
      }
    }
    [4] => array(6) {
      ["file"] => string(62) "Z:\home\193.124.113.31\www\app\controllers\StatsController.php"
      ["line"] => int(220)
      ["function"] => string(15) "getSimilarVotes"
      ["class"] => string(7) "Listing"
      ["type"] => string(2) "->"
      ["args"] => array(0) {
      }
    }
    [5] => array(6) {
      ["file"] => string(57) "Z:\home\193.124.113.31\www\lib\Zend\Controller\Action.php"
      ["line"] => int(516)
      ["function"] => string(13) "listingAction"
      ["class"] => string(15) "StatsController"
      ["type"] => string(2) "->"
      ["args"] => array(0) {
      }
    }
    [6] => array(6) {
      ["file"] => string(70) "Z:\home\193.124.113.31\www\lib\Zend\Controller\Dispatcher\Standard.php"
      ["line"] => int(295)
      ["function"] => string(8) "dispatch"
      ["class"] => string(22) "Zend_Controller_Action"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => &string(13) "listingAction"
      }
    }
    [7] => array(6) {
      ["file"] => string(56) "Z:\home\193.124.113.31\www\lib\Zend\Controller\Front.php"
      ["line"] => int(954)
      ["function"] => string(8) "dispatch"
      ["class"] => string(35) "Zend_Controller_Dispatcher_Standard"
      ["type"] => string(2) "->"
      ["args"] => array(2) {
        [0] => object(Zend_Controller_Request_Http)#34 (15) {
          ["_paramSources":protected] => array(2) {
            [0] => string(4) "_GET"
            [1] => string(5) "_POST"
          }
          ["_requestUri":protected] => string(10) "/stats/?32"
          ["_baseUrl":protected] => string(0) ""
          ["_basePath":protected] => NULL
          ["_pathInfo":protected] => string(7) "/stats/"
          ["_params":protected] => array(2) {
            ["controller"] => string(5) "stats"
            ["action"] => string(7) "listing"
          }
          ["_rawBody":protected] => NULL
          ["_aliases":protected] => array(0) {
          }
          ["_dispatched":protected] => bool(true)
          ["_module":protected] => string(7) "default"
          ["_moduleKey":protected] => string(6) "module"
          ["_controller":protected] => string(5) "stats"
          ["_controllerKey":protected] => string(10) "controller"
          ["_action":protected] => string(7) "listing"
          ["_actionKey":protected] => string(6) "action"
        }
        [1] => object(Zend_Controller_Response_Http)#35 (8) {
          ["_body":protected] => array(0) {
          }
          ["_exceptions":protected] => array(0) {
          }
          ["_headers":protected] => array(0) {
          }
          ["_headersRaw":protected] => array(0) {
          }
          ["_httpResponseCode":protected] => int(200)
          ["_isRedirect":protected] => bool(false)
          ["_renderExceptions":protected] => bool(false)
          ["headersSentThrowsException"] => bool(true)
        }
      }
    }
    [8] => array(6) {
      ["file"] => string(56) "Z:\home\193.124.113.31\www\lib\Zend\Controller\Front.php"
      ["line"] => int(212)
      ["function"] => string(8) "dispatch"
      ["class"] => string(21) "Zend_Controller_Front"
      ["type"] => string(2) "->"
      ["args"] => array(0) {
      }
    }
    [9] => array(6) {
      ["file"] => string(42) "Z:\home\193.124.113.31\www\stats\index.php"
      ["line"] => int(54)
      ["function"] => string(3) "run"
      ["class"] => string(21) "Zend_Controller_Front"
      ["type"] => string(2) "::"
      ["args"] => array(1) {
        [0] => &string(18) "../app/controllers"
      }
    }
  }
  ["previous":"Exception":private] => NULL
}