Code: 0
Message: 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 'ORDER BY date DESC LIMIT 1' at line 1
Trace:
Array ( [0] => Array ( [file] => /var/www/credit-rating.ua/Zend/Db/Statement.php [line] => 298 [function] => _execute [class] => Zend_Db_Statement_Pdo [type] => -> [args] => Array ( [0] => Array ( ) ) ) [1] => Array ( [file] => /var/www/credit-rating.ua/Zend/Db/Adapter/Abstract.php [line] => 279 [function] => execute [class] => Zend_Db_Statement [type] => -> [args] => Array ( [0] => Array ( ) ) ) [2] => Array ( [file] => /var/www/credit-rating.ua/Zend/Db/Adapter/Pdo/Abstract.php [line] => 208 [function] => query [class] => Zend_Db_Adapter_Abstract [type] => -> [args] => Array ( [0] => SELECT rate AS last_rate FROM rates WHERE object_type=21 AND object_id= ORDER BY date DESC LIMIT 1 [1] => Array ( ) ) ) [3] => Array ( [file] => /var/www/credit-rating.ua/Zend/Db/Adapter/Abstract.php [line] => 557 [function] => query [class] => Zend_Db_Adapter_Pdo_Abstract [type] => -> [args] => Array ( [0] => SELECT rate AS last_rate FROM rates WHERE object_type=21 AND object_id= ORDER BY date DESC LIMIT 1 [1] => Array ( ) ) ) [4] => Array ( [file] => /var/www/credit-rating.ua/blocks/articles_list.block.php [line] => 181 [function] => fetchOne [class] => Zend_Db_Adapter_Abstract [type] => -> [args] => Array ( [0] => SELECT rate AS last_rate FROM rates WHERE object_type=21 AND object_id= ORDER BY date DESC LIMIT 1 ) ) [5] => Array ( [file] => /var/www/credit-rating.ua/Smarty_plugins/function.block.php [line] => 51 [function] => getHTML [class] => articles_list_block [type] => -> [args] => Array ( ) ) [6] => Array ( [file] => /var/www/credit-rating.ua/cache/templates_cache/%%32^32F^32F110C9%%_right_col.tpl.php [line] => 788 [function] => smarty_function_block [args] => Array ( [0] => Array ( [name] => articles_list [params] => company,119,3,short ) [1] => C8_Site_TPL Object ( [exceptions:protected] => Array ( ) [template_dir] => templates [compile_dir] => cache/templates_cache [config_dir] => configs [plugins_dir] => Array ( [0] => plugins [1] => tpl_plugins [2] => Smarty_plugins [3] => /usr/share/php/Smarty_plugins ) [debugging] => [error_reporting] => [debug_tpl] => [debugging_ctrl] => NONE [compile_check] => 1 [force_compile] => [caching] => [cache_dir] => cache/templates_cache [cache_lifetime] => -1 [cache_modified_check] => [php_handling] => 0 [security] => 1 [secure_dir] => Array ( ) [security_settings] => Array ( [PHP_HANDLING] => [IF_FUNCS] => Array ( [0] => count [1] => strstr [2] => isset [3] => in_array [4] => trim [5] => ceil [6] => floor ) [INCLUDE_ANY] => [PHP_TAGS] => 1 [MODIFIER_FUNCS] => Array ( [0] => round [1] => count [2] => strstr [3] => trim [4] => ceil [5] => floor [6] => html_entity_decode [7] => in_array ) [ALLOW_CONSTANTS] => ) [trusted_dir] => Array ( ) [left_delimiter] => { [right_delimiter] => } [request_vars_order] => EGPCS [request_use_auto_globals] => 1 [compile_id] => [use_sub_dirs] => [default_modifiers] => Array ( ) [default_resource_type] => file [cache_handler_func] => [autoload_filters] => Array ( ) [config_overwrite] => 1 [config_booleanize] => 1 [config_read_hidden] => [config_fix_newlines] => 1 [default_template_handler_func] => [compiler_file] => Smarty_Compiler.class.php [compiler_class] => Smarty_Compiler [config_class] => Config_File [_tpl_vars] => Array ( [SCRIPT_NAME] => /index.php [_COUNTER_IDS] => Array ( [0] => 122 [1] => 117 [2] => 116 [3] => 119 [4] => 121 [5] => 127 [6] => 200 ) [_COUNTER_IDS_MEDIAS] => Array ( [0] => 183 [1] => 184 [2] => 185 ) [_LANGS] => Array ( [1] => Array ( [id] => 1 [alias] => ru [name] => русский [position] => 1 ) [2] => Array ( [id] => 2 [alias] => en [name] => english [position] => 2 ) [3] => Array ( [id] => 3 [alias] => ua [name] => українська [position] => 3 ) ) [_CUR_LANG] => 3 [sections] => Array ( [0] => Array ( [del] => 0 [id] => 194 [parentid] => 0 [raz_id] => 194 [m_raz_id] => 0 [raz_prior] => -1 [forum_raz_id] => 0 [raz_name] => Історія рейтингу [raz_email] => [langid] => 3 [g_raz_prior] => -1 [alias] => rate_history [link] => [template_id] => 0 [type] => Array ( [0] => main [1] => hidden ) [template_name] => rate_history [template_child_name] => rate_history [raz_descr] => [tag] => 0 [raz_key] => [guid] => e7fb6a42164ff1eca7209930460467d3 [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => ) ) [section] => Array ( [del] => 0 [id] => 194 [parentid] => 0 [raz_id] => 194 [m_raz_id] => 0 [raz_prior] => -1 [forum_raz_id] => 0 [raz_name] => Історія рейтингу [raz_email] => [langid] => 3 [g_raz_prior] => -1 [alias] => rate_history [link] => [template_id] => 0 [type] => Array ( [0] => main [1] => hidden ) [template_name] => rate_history [template_child_name] => rate_history [raz_descr] => [tag] => 0 [raz_key] => [guid] => e7fb6a42164ff1eca7209930460467d3 [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => ) [_MAG_NUMBER_LAST] => Array ( [id] => 41 [begin] => 1320098400 [end] => 1322690399 [n_real_number] => 3 [name] => Кредит-Рейтингу 10 років ) [cur_section] => Array ( [del] => 0 [id] => 194 [parentid] => 0 [raz_id] => 194 [m_raz_id] => 0 [raz_prior] => -1 [forum_raz_id] => 0 [raz_name] => Історія рейтингу [raz_email] => [langid] => 3 [g_raz_prior] => -1 [alias] => rate_history [link] => [template_id] => 0 [type] => Array ( [0] => main [1] => hidden ) [template_name] => rate_history [template_child_name] => rate_history [raz_descr] => [tag] => 0 [raz_key] => [guid] => e7fb6a42164ff1eca7209930460467d3 [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => ) [isLogged] => 2 [object_type] => 22 [object_id] => 791 [rates] => Array ( [0] => Array ( [rkinds] => [st_id] => ) ) [bookmark] => http://www.credit-rating.ua/ua/rate_history/22/791/ [bookmark_title] => Credit-Rating :: Присвоенные рейтинги :: [company_id] => [_BC] => Array ( [0] => Array ( [0] => /ua/ [1] => Головна ) [1] => Array ( [0] => /ua/ratings/ [1] => Рейтинги ) [2] => Array ( [0] => /ua/company [1] => ) [3] => Array ( [0] => [1] => ) ) [_TITLE] => Рейтинги :: Credit-Rating [_META_KEYWORDS] => [_META_DESCRIPTION] => [_URL] => Array ( [0] => 22 [1] => 791 ) [_URL_STR] => 22,791 [item] => Array ( [rkinds] => [st_id] => ) [alias_right_col] => 194 [site_url] => http://www.credit-rating.ua/ [credit] => Array ( [del] => 0 [id] => 113 [parentid] => 112 [raz_id] => 113 [m_raz_id] => 112 [raz_prior] => 304 [forum_raz_id] => 0 [raz_name] => Кредитні рейтинги [raz_email] => [langid] => 3 [g_raz_prior] => 304 [alias] => object/7 [link] => [template_id] => 0 [type] => Array ( [0] => main ) [template_name] => [template_child_name] => [raz_descr] => Array ( [short_title] => Кредитні рейтинги [total] => 1219 ) [tag] => 0 [raz_key] => [guid] => 64f8c5228eeff16c754b90af8d2b96ea [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => Array ( [short_title] => Кредитні рейтинги [total] => 1219 ) ) [deposit] => Array ( [del] => 0 [id] => 199 [parentid] => 112 [raz_id] => 199 [m_raz_id] => 112 [raz_prior] => 301 [forum_raz_id] => 0 [raz_name] => Рейтинги депозитів банків [raz_email] => [langid] => 3 [g_raz_prior] => 301 [alias] => object/24 [link] => [template_id] => 0 [type] => Array ( [0] => main ) [template_name] => [template_child_name] => [raz_descr] => Array ( [short_title] => Рейтинги депозитів банків [total] => 98 ) [tag] => 0 [raz_key] => [guid] => b22a9891e6a3a108c9d766ac25cc0151 [artnum] => 19 [st_id] => 4655 [article] => 4655 [ini] => Array ( [short_title] => Рейтинги депозитів банків [total] => 98 ) ) [strah] => Array ( [del] => 0 [id] => 210 [parentid] => 112 [raz_id] => 210 [m_raz_id] => 112 [raz_prior] => 300 [forum_raz_id] => 0 [raz_name] => Рейтинги надійності страхових компаній [raz_email] => [langid] => 3 [g_raz_prior] => 300 [alias] => object/25 [link] => [template_id] => 0 [type] => Array ( [0] => main ) [template_name] => [template_child_name] => [raz_descr] => Array ( [short_title] => Рейтинги над. страх. компаній [total] => 12 ) [tag] => 0 [raz_key] => [guid] => 882a9c33b5a719c7c59a59272e12d271 [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => Array ( [short_title] => Рейтинги над. страх. компаній [total] => 12 ) ) [corp] => Array ( [del] => 0 [id] => 114 [parentid] => 112 [raz_id] => 114 [m_raz_id] => 112 [raz_prior] => 255 [forum_raz_id] => 0 [raz_name] => Рейтинги корпоративного керування [raz_email] => [langid] => 3 [g_raz_prior] => 255 [alias] => object/23 [link] => [template_id] => 0 [type] => Array ( [0] => main ) [template_name] => [template_child_name] => [raz_descr] => Array ( [short_title] => Рейтинги корпоративного кер. [total] => 1 ) [tag] => 0 [raz_key] => [guid] => 82fc7952b49b0966ba1880497f6a1ec5 [artnum] => 0 [st_id] => 0 [article] => 0 [ini] => Array ( [short_title] => Рейтинги корпоративного кер. [total] => 1 ) ) [sect] => Array ( [id] => 220 [parent] => 98 [guid] => 79a61872f4a667d37491224b4e81bbbd [language] => Array ( [id] => 3 [alias] => Array ( [id] => 3 [alias] => ua [locale] => uk_UA.utf8 [code] => UA [long] => ukr ) ) [articles_count] => 0 [alias] => clients_about_rating [redirect] => [priority] => Array ( [section] => 274 [global] => 274 ) [email] => [forum] => 0 [name] => Клієнти про рейтинги [template] => Array ( [section] => [article] => ) [tag] => 0 [ini] => Array ( [block_name] => Клієнти ) [flags] => Array ( [delete] => 1 [type] => Array ( [0] => main ) ) [articles] => Array ( [all] => Array ( ) [count] => 0 [first] => ) [url] => ) [list] => Array ( ) [short_format] => 1 [message] => 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 'ORDER BY date DESC LIMIT 1' at line 1 [code] => 0 ) [_smarty_vars] => [_sections] => Array ( ) [_foreach] => Array ( [i] => Array ( [total] => 7 [iteration] => 7 ) [isecond] => Array ( [total] => 6 [iteration] => 6 ) [bc] => Array ( [total] => 4 [iteration] => 4 ) ) [_tag_stack] => Array ( ) [_conf_obj] => [_config] => Array ( [0] => Array ( [vars] => Array ( ) [files] => Array ( ) ) [1] => Array ( [vars] => Array ( ) [files] => Array ( ) ) ) [_smarty_md5] => f8d698aea36fcbead2b9d5359ffca76f [_version] => 2.6.16 [_inclusion_depth] => 0 [_compile_id] => [_smarty_debug_id] => SMARTY_DEBUG [_smarty_debug_info] => Array ( ) [_cache_info] => Array ( ) [_file_perms] => 420 [_dir_perms] => 505 [_reg_objects] => Array ( ) [_plugins] => Array ( [modifier] => Array ( [number_format] => Array ( [0] => smarty_modifier_number_format [1] => module.rate_history.tpl [2] => 108 [3] => 1 [4] => 1 ) [date_format] => Array ( [0] => smarty_modifier_date_format [1] => module.rate_history.tpl [2] => 184 [3] => 1 [4] => 1 ) [count] => Array ( [0] => count [1] => _bc.tpl [2] => 2 [3] => 1 [4] => 1 ) [in_array] => Array ( [0] => in_array [1] => _bottom_blocks_switch.tpl [2] => 7 [3] => 1 [4] => 1 ) ) [function] => Array ( [url] => Array ( [0] => smarty_function_url [1] => module.rate_history.tpl [2] => 161 [3] => 1 [4] => 1 ) [block] => Array ( [0] => smarty_function_block [1] => _html_start.tpl [2] => 35 [3] => 1 [4] => 1 ) [set] => Array ( [0] => smarty_function_set [1] => _bottom_blocks_switch.tpl [2] => 5 [3] => 1 [4] => 1 ) ) [block] => Array ( ) [compiler] => Array ( ) [prefilter] => Array ( ) [postfilter] => Array ( [translate_template] => Array ( [0] => translate_template [1] => [2] => [3] => ) ) [outputfilter] => Array ( ) [resource] => Array ( ) [insert] => Array ( ) ) [_cache_serials] => Array ( ) [_cache_include] => [_cache_including] => ) ) ) [7] => Array ( [file] => /var/www/credit-rating.ua/Smarty/Smarty.class.php [line] => 1871 [args] => Array ( [0] => /var/www/credit-rating.ua/cache/templates_cache/%%32^32F^32F110C9%%_right_col.tpl.php ) [function] => include ) [8] => Array ( [file] => /var/www/credit-rating.ua/cache/templates_cache/%%9E^9EE^9EE36022%%module.rate_history.tpl.php [line] => 414 [function] => _smarty_include [class] => Smarty [type] => -> [args] => Array ( [0] => Array ( [smarty_include_tpl_file] => _right_col.tpl [smarty_include_vars] => Array ( ) ) ) ) [9] => Array ( [file] => /var/www/credit-rating.ua/Smarty/Smarty.class.php [line] => 1265 [args] => Array ( [0] => /var/www/credit-rating.ua/cache/templates_cache/%%9E^9EE^9EE36022%%module.rate_history.tpl.php ) [function] => include ) [10] => Array ( [file] => /var/www/credit-rating.ua/C8/Site/TPL.php [line] => 70 [function] => fetch [class] => Smarty [type] => -> [args] => Array ( [0] => module.rate_history.tpl [1] => [2] => [3] => ) ) [11] => Array ( [file] => /var/www/credit-rating.ua/C8/Site/Module.php [line] => 225 [function] => fetch [class] => C8_Site_TPL [type] => -> [args] => Array ( [0] => module.rate_history.tpl ) ) [12] => Array ( [file] => /var/www/credit-rating.ua/C8/Site/Controller.php [line] => 300 [function] => getHTML [class] => C8_Site_Module [type] => -> [args] => Array ( ) ) [13] => Array ( [file] => /var/www/credit-rating.ua/index.php [line] => 317 [function] => getHTML [class] => C8_Site_Controller [type] => -> [args] => Array ( ) ) [14] => Array ( [file] => /var/www/credit-rating.ua/www/index.php [line] => 3 [args] => Array ( [0] => /var/www/credit-rating.ua/index.php ) [function] => require ) )