Сайт временнно недоступен =(
object(Zend_Db_Statement_Exception)#26 (6) {
  ["message:protected"] => string(202) "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
  ["string:private"] => string(0) ""
  ["code:protected"] => int(0)
  ["file:protected"] => string(57) "/var/www/mdt2007.ru/htdocs/libs/Zend/Db/Statement/Pdo.php"
  ["line:protected"] => int(238)
  ["trace:private"] => array(10) {
    [0] => array(6) {
      ["file"] => string(53) "/var/www/mdt2007.ru/htdocs/libs/Zend/Db/Statement.php"
      ["line"] => int(283)
      ["function"] => string(8) "_execute"
      ["class"] => string(21) "Zend_Db_Statement_Pdo"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => array(0) {
        }
      }
    }
    [1] => array(6) {
      ["file"] => string(60) "/var/www/mdt2007.ru/htdocs/libs/Zend/Db/Adapter/Abstract.php"
      ["line"] => int(406)
      ["function"] => string(7) "execute"
      ["class"] => string(17) "Zend_Db_Statement"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => array(0) {
        }
      }
    }
    [2] => array(6) {
      ["file"] => string(64) "/var/www/mdt2007.ru/htdocs/libs/Zend/Db/Adapter/Pdo/Abstract.php"
      ["line"] => int(206)
      ["function"] => string(5) "query"
      ["class"] => string(24) "Zend_Db_Adapter_Abstract"
      ["type"] => string(2) "->"
      ["args"] => array(2) {
        [0] => string(92) "SELECT a.*,b.* FROM Colors as a LEFT JOIN Photo as b ON a.value_id = b.id WHERE a.item_id = "
        [1] => array(0) {
        }
      }
    }
    [3] => array(6) {
      ["file"] => string(45) "/var/www/mdt2007.ru/htdocs/libs/Catalogue.php"
      ["line"] => int(38)
      ["function"] => string(5) "query"
      ["class"] => string(28) "Zend_Db_Adapter_Pdo_Abstract"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => string(92) "SELECT a.*,b.* FROM Colors as a LEFT JOIN Photo as b ON a.value_id = b.id WHERE a.item_id = "
      }
    }
    [4] => array(6) {
      ["file"] => string(73) "/var/www/mdt2007.ru/htdocs/controllers/usr/static/CatalogueController.php"
      ["line"] => int(55)
      ["function"] => string(11) "getItemData"
      ["class"] => string(9) "Catalogue"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => NULL
      }
    }
    [5] => array(6) {
      ["file"] => string(58) "/var/www/mdt2007.ru/htdocs/libs/Zend/Controller/Action.php"
      ["line"] => int(502)
      ["function"] => string(14) "showitemAction"
      ["class"] => string(19) "catalogueController"
      ["type"] => string(2) "->"
      ["args"] => array(0) {
      }
    }
    [6] => array(6) {
      ["file"] => string(71) "/var/www/mdt2007.ru/htdocs/libs/Zend/Controller/Dispatcher/Standard.php"
      ["line"] => int(293)
      ["function"] => string(8) "dispatch"
      ["class"] => string(22) "Zend_Controller_Action"
      ["type"] => string(2) "->"
      ["args"] => array(1) {
        [0] => string(14) "showitemAction"
      }
    }
    [7] => array(6) {
      ["file"] => string(57) "/var/www/mdt2007.ru/htdocs/libs/Zend/Controller/Front.php"
      ["line"] => int(914)
      ["function"] => string(8) "dispatch"
      ["class"] => string(35) "Zend_Controller_Dispatcher_Standard"
      ["type"] => string(2) "->"
      ["args"] => array(2) {
        [0] => object(Zend_Controller_Request_Http)#17 (14) {
          ["_paramSources:protected"] => array(2) {
            [0] => string(4) "_GET"
            [1] => string(5) "_POST"
          }
          ["_requestUri:protected"] => string(41) "/catalogue/showitem/catalogue/showitem/19"
          ["_baseUrl:protected"] => string(0) ""
          ["_basePath:protected"] => NULL
          ["_pathInfo:protected"] => string(41) "/catalogue/showitem/catalogue/showitem/19"
          ["_params:protected"] => array(4) {
            ["controller"] => string(9) "catalogue"
            ["action"] => string(8) "showitem"
            ["catalogue"] => string(8) "showitem"
            ["module"] => string(7) "default"
          }
          ["_aliases:protected"] => array(0) {
          }
          ["_dispatched:protected"] => bool(true)
          ["_module:protected"] => string(7) "default"
          ["_moduleKey:protected"] => string(6) "module"
          ["_controller:protected"] => string(9) "catalogue"
          ["_controllerKey:protected"] => string(10) "controller"
          ["_action:protected"] => string(8) "showitem"
          ["_actionKey:protected"] => string(6) "action"
        }
        [1] => object(Zend_Controller_Response_Http)#18 (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(44) "/var/www/mdt2007.ru/htdocs/engine/engine.php"
      ["line"] => int(136)
      ["function"] => string(8) "dispatch"
      ["class"] => string(21) "Zend_Controller_Front"
      ["type"] => string(2) "->"
      ["args"] => array(0) {
      }
    }
    [9] => array(6) {
      ["file"] => string(36) "/var/www/mdt2007.ru/htdocs/index.php"
      ["line"] => int(14)
      ["function"] => string(8) "Dispatch"
      ["class"] => string(6) "Kernel"
      ["type"] => string(2) "::"
      ["args"] => array(0) {
      }
    }
  }
}