at [cosyx|/]
PHP uncatched exception: exception 'ADODB_Exception' with message 'mysqli error: [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 14] in EXECUTE("select towns.Cod,
towns.Name,
towns.URL,
towns_country.Id as CountryCod,
towns_country.Name as CountryName,
towns_country.URL as CountryURL,
towns_region.Id as RegionCod,
towns_region.Name as RegionName,
towns_region.URL as RegionURL
from towns
left join towns_country on towns.Country=towns_country.Id
left join towns_region on towns.Region=towns_region.Id
where
towns.Cod=")
' in /home/u374288/meteo-tv.ru/www/meteoclass/adodb5/adodb-exceptions.inc.php:78
Stack trace:
#0 /home/u374288/meteo-tv.ru/www/meteoclass/adodb5/adodb.inc.php(1074): adodb_throw('mysqli', 'EXECUTE', 1064, 'You have an err...', 'select towns.Co...', false, Object(ADODB_mysqli))
#1 /home/u374288/meteo-tv.ru/www/meteoclass/adodb5/adodb.inc.php(1049): ADOConnection->_Execute('select towns.Co...', false)
#2 /home/u374288/meteo-tv.ru/www/meteoclass/adodb5/adodb.inc.php(1643): ADOConnection->Execute('select towns.Co...', false)
#3 /home/u374288/meteo-tv.ru/www/meteoclass/meteogid.inc.php(194): ADOConnection->GetRow('select towns.Co...')
#4 /home/u374288/meteo-tv.ru/www/cosyx.app/class/meteogiddirect.inc.php(15): MeteoGid->get_city(NULL, 'cod')
#5 /home/u374288/meteo-tv.ru/www/cosyx.app/class/meteogidwrapper.inc.php(17): MeteoGidDirect->get_city(NULL, 'cod')
#6 /home/u374288/meteo-tv.ru/www/bitrix/components/webnroll/weatherbox/component.php(32): MeteoGidWrapper->get_city(NULL)
#7 /home/u374288/meteo-tv.ru/www/bitrix/modules/main/classes/general/component.php(472): include('/home/u374288/m...')
#8 /home/u374288/meteo-tv.ru/www/bitrix/modules/main/classes/general/component.php(515): CBitrixComponent->__includeComponent()
#9 /home/u374288/meteo-tv.ru/www/bitrix/modules/main/classes/general/main.php(1011): CBitrixComponent->includeComponent('', Array, NULL)
#10 /home/u374288/meteo-tv.ru/www/index.php(27): CAllMain->IncludeComponent('webnroll:weathe...', '', Array)
#11 {main}