Zend Framework Default Application
Ошибка12
Application error
object(Zend_Db_Statement_Exception)#354 (8) {
["message":protected]=>
string(5651) "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 ')) OR (art='342190' AND brand_id IN ()) OR (art='CRC1004' AND brand_id IN (163))' at line 4, query was: SELECT p.id, p.art, p.sup_id, p.name, p.price, p.quantity, b.image as brand_image, p.brand as brand_title, b2.id as main_brand_id, b2.tecdoc_id as main_brand_tecdoc_id FROM products as p
LEFT JOIN brands as b ON b.id=p.brand_id
LEFT JOIN brands as b2 ON b2.id=b.main_id
WHERE p.quantity>0 AND ((art='130200' AND brand_id IN (901)) OR (art='130201' AND brand_id IN (901)) OR (art='211230N' AND brand_id IN (73,50116,53706)) OR (art='211990N' AND brand_id IN (73,50116,53706)) OR (art='330CC30' AND brand_id IN (207)) OR (art='04621005' AND brand_id IN (920,53613)) OR (art='H55815' AND brand_id IN (920,53613)) OR (art='T55402' AND brand_id IN (920,53613)) OR (art='T78917' AND brand_id IN (920,53613)) OR (art='U55804' AND brand_id IN (920,53613)) OR (art='U85001' AND brand_id IN (920,53613)) OR (art='102351' AND brand_id IN (473)) OR (art='104194' AND brand_id IN (473)) OR (art='TO2239' AND brand_id IN (199,3503,19218)) OR (art='TO2240' AND brand_id IN (199,3503,19218)) OR (art='TOA2240' AND brand_id IN (199,3503,19218)) OR (art='8MK376718481' AND brand_id IN (2,12,49,91,450,1154,1878,2926,3673,5362,5363,5364,5393,5405,5620,5621,5710,6018,6019,19158,19322,19653,19714,20280,51159,52245,54250,54387,54432)) OR (art='8MK376773271' AND brand_id IN (2,12,49,91,450,1154,1878,2926,3673,5362,5363,5364,5393,5405,5620,5621,5710,6018,6019,19158,19322,19653,19714,20280,51159,52245,54250,54387,54432)) OR (art='8069' AND brand_id IN (169)) OR (art='ADM59903' AND brand_id IN (271,4263,52192)) OR (art='BRC102' AND brand_id IN (349,2924,19178)) OR (art='RC0047' AND brand_id IN (174,3530)) OR (art='954095' AND brand_id IN (890,4312)) OR (art='DRM50015' AND brand_id IN (63)) OR (art='8500188' AND brand_id IN (204)) OR (art='8500189' AND brand_id IN (204)) OR (art='DCM3203' AND brand_id IN (204)) OR (art='DCM3204' AND brand_id IN (204)) OR (art='RC00279' AND brand_id IN (216)) OR (art='FRC102' AND brand_id IN (892,50001,50937)) OR (art='01153126' AND brand_id IN (246)) OR (art='01153127' AND brand_id IN (246)) OR (art='RC127' AND brand_id IN (31)) OR (art='8MK376718481' AND brand_id IN (2,12,49,91,450,1154,1878,2926,3673,5362,5363,5364,5393,5405,5620,5621,5710,6018,6019,19158,19322,19653,19714,20280,51159,52245,54250,54387,54432)) OR (art='8MK376773271' AND brand_id IN (2,12,49,91,450,1154,1878,2926,3673,5362,5363,5364,5393,5405,5620,5621,5710,6018,6019,19158,19322,19653,19714,20280,51159,52245,54250,54387,54432)) OR (art='J1545001' AND brand_id IN (51,1722,19239,20685,20772,50728,50729,51008,51071,53621)) OR (art='IRC7010' AND brand_id IN (338)) OR (art='KHC30' AND brand_id IN (128,3182,19118)) OR (art='33C30' AND brand_id IN (352)) OR (art='342130' AND brand_id IN ()) OR (art='342190' AND brand_id IN ()) OR (art='CRC1004' AND brand_id IN (163)) OR (art='8112309999' AND brand_id IN (71,2620)) OR (art='8160302239' AND brand_id IN (71,2620)) OR (art='8160302240' AND brand_id IN (71,2620)) OR (art='1553790' AND brand_id IN (423,5199)) OR (art='0510170010' AND brand_id IN (456)) OR (art='0510170038' AND brand_id IN (456)) OR (art='LRC1903' AND brand_id IN (488,54050)) OR (art='280370' AND brand_id IN (307)) OR (art='MRC4C30' AND brand_id IN (1171)) OR (art='TTY3950000' AND brand_id IN (1171)) OR (art='TTY3950100' AND brand_id IN (1171)) OR (art='J1545001' AND brand_id IN (200)) OR (art='64783A' AND brand_id IN (104,50929)) OR (art='64784A' AND brand_id IN (104,50929)) OR (art='DRM50015' AND brand_id IN (327,55050)) OR (art='M155A03' AND brand_id IN (327,55050)) OR (art='T156A53' AND brand_id IN (327,55050)) OR (art='T156A54' AND brand_id IN (327,55050)) OR (art='53264' AND brand_id IN (166,53541)) OR (art='53267' AND brand_id IN (166,53541)) OR (art='2060292' AND brand_id IN (1201)) OR (art='JAPKHC30' AND brand_id IN (1100)) OR (art='TO2239' AND brand_id IN (264)) OR (art='TO2240' AND brand_id IN (264)) OR (art='TOA2240' AND brand_id IN (264)) OR (art='FC67' AND brand_id IN (54,1736)) OR (art='QER2316' AND brand_id IN (54,1736)) OR (art='75274' AND brand_id IN (3750)) OR (art='KRC024' AND brand_id IN (3750)) OR (art='311740G' AND brand_id IN (706)) OR (art='311742' AND brand_id IN (706)) OR (art='1025113SX' AND brand_id IN (440)) OR (art='1025422SX' AND brand_id IN (440)) OR (art='D72014TT' AND brand_id IN (407)) OR (art='861017' AND brand_id IN (94)) OR (art='732754' AND brand_id IN (20,5395,6966,6968,7083,19160,19206,19654,50949,51059)) OR (art='732951' AND brand_id IN (20,5395,6966,6968,7083,19160,19206,19654,50949,51059)) OR (art='53002239' AND brand_id IN (36,1686,52178)) OR (art='53002240' AND brand_id IN (36,1686,52178)) OR (art='WG1722171' AND brand_id IN (1188,6051)) OR (art='WG1722174' AND brand_id IN (1188,6051))) AND p.sup_id IN (1,2,3,5,9,12,13,15,16,17,20,21,23,24,25,26,27,28,29,31,33,35,36,37,38,39,40,42,43,44,46,47,48,49,51,52,53,54,55,61,64,66,67,69,70,72,73,74,75,76,77,78,82,85,87,88,90,91,92,93,95,96,97,98,100,102,103,104,105,106,110,112,113,114,115,116,117,118,119,120,121,123,124,125,128,130,131,132,133,134,136,137,138,139,141,142,143,144,145,146,147,149,151,152,156,159,160,162,164,165,166,167,168,169,171,172,174,177,178,188,190,191,192,194,195,196,198,201,202,206,214,215,218,221,220,211,222,223,230,231,235,240,241,243,244,246,247,251,252,259,260,261,268,271,272,56,242,279,282,286,296,295,294,300,301,302,303,304,305,227)"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(42000)
["file":protected]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line":protected]=>
int(235)
["trace":"Exception":private]=>
array(12) {
[0]=>
array(5) {
["file"]=>
string(30) "/var/www/Zend/Db/Statement.php"
["line"]=>
int(303)
["function"]=>
string(8) "_execute"
["class"]=>
string(21) "Zend_Db_Statement_Pdo"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(480)
["function"]=>
string(7) "execute"
["class"]=>
string(17) "Zend_Db_Statement"
["type"]=>
string(2) "->"
}
[2]=>
array(5) {
["file"]=>
string(41) "/var/www/Zend/Db/Adapter/Pdo/Abstract.php"
["line"]=>
int(238)
["function"]=>
string(5) "query"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[3]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(739)
["function"]=>
string(5) "query"
["class"]=>
string(28) "Zend_Db_Adapter_Pdo_Abstract"
["type"]=>
string(2) "->"
}
[4]=>
array(5) {
["file"]=>
string(51) "/var/www/artis/application/models/Search/Search.php"
["line"]=>
int(1158)
["function"]=>
string(8) "fetchAll"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[5]=>
array(5) {
["file"]=>
string(81) "/var/www/artis/application/modules/default/controllers/PartscatalogController.php"
["line"]=>
int(659)
["function"]=>
string(11) "getProducts"
["class"]=>
string(31) "Application_Model_Search_Search"
["type"]=>
string(2) "->"
}
[6]=>
array(5) {
["file"]=>
string(35) "/var/www/Zend/Controller/Action.php"
["line"]=>
int(516)
["function"]=>
string(11) "indexAction"
["class"]=>
string(22) "PartscatalogController"
["type"]=>
string(2) "->"
}
[7]=>
array(5) {
["file"]=>
string(48) "/var/www/Zend/Controller/Dispatcher/Standard.php"
["line"]=>
int(308)
["function"]=>
string(8) "dispatch"
["class"]=>
string(22) "Zend_Controller_Action"
["type"]=>
string(2) "->"
}
[8]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Controller/Front.php"
["line"]=>
int(954)
["function"]=>
string(8) "dispatch"
["class"]=>
string(35) "Zend_Controller_Dispatcher_Standard"
["type"]=>
string(2) "->"
}
[9]=>
array(5) {
["file"]=>
string(49) "/var/www/Zend/Application/Bootstrap/Bootstrap.php"
["line"]=>
int(105)
["function"]=>
string(8) "dispatch"
["class"]=>
string(21) "Zend_Controller_Front"
["type"]=>
string(2) "->"
}
[10]=>
array(5) {
["file"]=>
string(29) "/var/www/Zend/Application.php"
["line"]=>
int(400)
["function"]=>
string(3) "run"
["class"]=>
string(36) "Zend_Application_Bootstrap_Bootstrap"
["type"]=>
string(2) "->"
}
[11]=>
array(5) {
["file"]=>
string(31) "/var/www/artis/public/index.php"
["line"]=>
int(34)
["function"]=>
string(3) "run"
["class"]=>
string(16) "Zend_Application"
["type"]=>
string(2) "->"
}
}
["previous":"Exception":private]=>
object(PDOException)#355 (8) {
["message":protected]=>
string(282) "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 ')) OR (art='342190' AND brand_id IN ()) OR (art='CRC1004' AND brand_id IN (163))' at line 4"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
string(5) "42000"
["file":protected]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line":protected]=>
int(228)
["trace":"Exception":private]=>
array(13) {
[0]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line"]=>
int(228)
["function"]=>
string(7) "execute"
["class"]=>
string(12) "PDOStatement"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(30) "/var/www/Zend/Db/Statement.php"
["line"]=>
int(303)
["function"]=>
string(8) "_execute"
["class"]=>
string(21) "Zend_Db_Statement_Pdo"
["type"]=>
string(2) "->"
}
[2]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(480)
["function"]=>
string(7) "execute"
["class"]=>
string(17) "Zend_Db_Statement"
["type"]=>
string(2) "->"
}
[3]=>
array(5) {
["file"]=>
string(41) "/var/www/Zend/Db/Adapter/Pdo/Abstract.php"
["line"]=>
int(238)
["function"]=>
string(5) "query"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[4]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(739)
["function"]=>
string(5) "query"
["class"]=>
string(28) "Zend_Db_Adapter_Pdo_Abstract"
["type"]=>
string(2) "->"
}
[5]=>
array(5) {
["file"]=>
string(51) "/var/www/artis/application/models/Search/Search.php"
["line"]=>
int(1158)
["function"]=>
string(8) "fetchAll"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[6]=>
array(5) {
["file"]=>
string(81) "/var/www/artis/application/modules/default/controllers/PartscatalogController.php"
["line"]=>
int(659)
["function"]=>
string(11) "getProducts"
["class"]=>
string(31) "Application_Model_Search_Search"
["type"]=>
string(2) "->"
}
[7]=>
array(5) {
["file"]=>
string(35) "/var/www/Zend/Controller/Action.php"
["line"]=>
int(516)
["function"]=>
string(11) "indexAction"
["class"]=>
string(22) "PartscatalogController"
["type"]=>
string(2) "->"
}
[8]=>
array(5) {
["file"]=>
string(48) "/var/www/Zend/Controller/Dispatcher/Standard.php"
["line"]=>
int(308)
["function"]=>
string(8) "dispatch"
["class"]=>
string(22) "Zend_Controller_Action"
["type"]=>
string(2) "->"
}
[9]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Controller/Front.php"
["line"]=>
int(954)
["function"]=>
string(8) "dispatch"
["class"]=>
string(35) "Zend_Controller_Dispatcher_Standard"
["type"]=>
string(2) "->"
}
[10]=>
array(5) {
["file"]=>
string(49) "/var/www/Zend/Application/Bootstrap/Bootstrap.php"
["line"]=>
int(105)
["function"]=>
string(8) "dispatch"
["class"]=>
string(21) "Zend_Controller_Front"
["type"]=>
string(2) "->"
}
[11]=>
array(5) {
["file"]=>
string(29) "/var/www/Zend/Application.php"
["line"]=>
int(400)
["function"]=>
string(3) "run"
["class"]=>
string(36) "Zend_Application_Bootstrap_Bootstrap"
["type"]=>
string(2) "->"
}
[12]=>
array(5) {
["file"]=>
string(31) "/var/www/artis/public/index.php"
["line"]=>
int(34)
["function"]=>
string(3) "run"
["class"]=>
string(16) "Zend_Application"
["type"]=>
string(2) "->"
}
}
["previous":"Exception":private]=>
NULL
["errorInfo"]=>
array(3) {
[0]=>
string(5) "42000"
[1]=>
int(1064)
[2]=>
string(226) "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 ')) OR (art='342190' AND brand_id IN ()) OR (art='CRC1004' AND brand_id IN (163))' at line 4"
}
}
["_previous":"Zend_Exception":private]=>
NULL
}