SQLinfo.ru - Все о MySQL

Форум пользователей MySQL

Задавайте вопросы, мы ответим

Вы не зашли.

#1 11.07.2017 10:25:59

server689
Участник
Зарегистрирован: 11.07.2017
Сообщений: 2

Вываливается exception

Помогите не могу понять где ошибка, вот код:

exception 'CDbException' with message 'CDbCommand не удалось исполнить SQL-запрос: 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 ' '1104', '1073', '1121', '1120', '1119', '1113', '1112', '1', '1111', '1110', '1' at line 1. The SQL statement executed was: SELECT `t`.`id` AS `t0_c0`, `t`.`lft` AS `t0_c1`, `t`.`rgt` AS `t0_c2`, `t`.`level` AS `t0_c3`, `t`.`url` AS `t0_c4`, `t`.`full_path` AS `t0_c5`, `t`.`layout` AS `t0_c6`, `t`.`view` AS `t0_c7`, `cat_translate`.`id` AS `t1_c0`, `cat_translate`.`object_id` AS `t1_c1`, `cat_translate`.`language_id` AS `t1_c2`, `cat_translate`.`name` AS `t1_c3`, `cat_translate`.`fullname` AS `t1_c4`, `cat_translate`.`description` AS `t1_c5`, `cat_translate`.`meta_title` AS `t1_c6`, `cat_translate`.`meta_keywords` AS `t1_c7`, `cat_translate`.`meta_description` AS `t1_c8` FROM `StoreCategory` `t`  LEFT OUTER JOIN `StoreCategoryTranslate` `cat_translate` ON (`cat_translate`.`object_id`=`t`.`id`)  WHERE ((t.id != 1) AND (`t`.`id` IN ('1126', '1095', '1099', '1125', '1090', '1055', '1082', '1057', '1117', '1115', '1114', '1116', '1124', '1108', '1107', '1077', '1080', '1122', , '1104', '1073', '1121', '1120', '1119', '1113', '1112', '1', '1111', '1110', '1109', '1102', '1105', '1076', '1075', '1072', '1103', '1081', '1101', '1100', '1078', '1079', '1089', '1088', '1098', '1083', '1097', '1096', '1123', '1059', '1094', '1084', '1056', '1058', '1093', '1091', '1092', '1086', '1085'))) AND (cat_translate.language_id=:language_id). Bound with :language_id='1'' in /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/CDbCommand.php:541
Stack trace:
#0 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/CDbCommand.php(395): CDbCommand->queryInternal('fetchAll', Array, Array)
#1 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/ar/CActiveFinder.php(761): CDbCommand->queryAll()
#2 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/ar/CActiveFinder.php(422): CJoinElement->runQuery(Object(CJoinQuery))
#3 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/ar/CActiveFinder.php(68): CJoinElement->find(Object(CDbCriteria))
#4 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/ar/CActiveRecord.php(1302): CActiveFinder->query(Object(CDbCriteria), true)
#5 /var/www/discountwatches/data/www/ecoincubator.ru/framework/db/ar/CActiveRecord.php(1448): CActiveRecord->query(Object(CDbCriteria), true)
#6 /var/www/discountwatches/data/www/ecoincubator.ru/protected/modules/export/components/exporter/renderers/YandexMarket.php(90): CActiveRecord->findAllByPk(Array)
#7 /var/www/discountwatches/data/www/ecoincubator.ru/protected/modules/export/components/exporter/Exporter.php(79): exporter\renderers\YandexMarket->save()
#8 /var/www/discountwatches/data/www/ecoincubator.ru/protected/modules/export/components/exporter/Exporter.php(64): exporter\Exporter->save()
#9 /var/www/discountwatches/data/www/ecoincubator.ru/protected/commands/ExportCommand.php(18): exporter\Exporter->run()
#10 /var/www/discountwatches/data/www/ecoincubator.ru/framework/console/CConsoleCommandRunner.php(67): ExportCommand->run(Array)
#11 /var/www/discountwatches/data/www/ecoincubator.ru/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run(Array)
#12 /var/www/discountwatches/data/www/ecoincubator.ru/framework/base/CApplication.php(169): CConsoleApplication->processRequest()
#13 /var/www/discountwatches/data/www/ecoincubator.ru/framework/yiic.php(33): CApplication->run()
#14 /var/www/discountwatches/data/www/ecoincubator.ru/protected/yiic.php(8): require_once('/var/www/discou...')
#15 /var/www/discountwatches/data/www/ecoincubator.ru/protected/yiic(4): require_once('/var/www/discou...')

Неактивен

 

#2 11.07.2017 11:09:59

vasya
Архат
MySQL Authorized Developer
Откуда: Орел
Зарегистрирован: 07.03.2007
Сообщений: 5827

Re: Вываливается exception

'1122', , '1104',
лишняя запятая

Неактивен

 

#3 11.07.2017 12:44:03

server689
Участник
Зарегистрирован: 11.07.2017
Сообщений: 2

Re: Вываливается exception

благодарю

Неактивен

 

Board footer

Работает на PunBB
© Copyright 2002–2008 Rickard Andersson