MDB2_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -1 [message] => MDB2 Error: unknown error [userinfo] => _doQuery: [Error message: Could not execute statement] [Last executed query: select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ] [Native code: 126] [Native message: Incorrect key file for table '/tmp/#sql_7cb_0.MYI'; try to repair it] [backtrace] => Array ( [0] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2.php [line] => 979 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => MDB2 Error: unknown error [1] => -1 [2] => 1 [3] => 1024 [4] => _doQuery: [Error message: Could not execute statement] [Last executed query: select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ] [Native code: 126] [Native message: Incorrect key file for table '/tmp/#sql_7cb_0.MYI'; try to repair it] ) ) [1] => Array ( [file] => /home/admin/web/logistock.ru/public_html/PEAR.php [line] => 531 [function] => __construct [class] => MDB2_Error [object] => MDB2_Error Object *RECURSION* [type] => -> [args] => Array ( [0] => [1] => 1 [2] => 1024 [3] => _doQuery: [Error message: Could not execute statement] [Last executed query: select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ] [Native code: 126] [Native message: Incorrect key file for table '/tmp/#sql_7cb_0.MYI'; try to repair it] ) ) [2] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2.php [line] => 1500 [function] => raiseError [class] => PEAR [type] => :: [args] => Array ( [0] => [1] => [2] => [3] => [4] => _doQuery: [Error message: Could not execute statement] [Last executed query: select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ] [Native code: 126] [Native message: Incorrect key file for table '/tmp/#sql_7cb_0.MYI'; try to repair it] [5] => MDB2_Error [6] => 1 ) ) [3] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2/Driver/mysql.php [line] => 811 [function] => raiseError [class] => MDB2_Driver_Common [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => [1] => [2] => [3] => Could not execute statement [4] => _doQuery ) ) [4] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2.php [line] => 2629 [function] => _doQuery [class] => MDB2_Driver_mysql [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [1] => [2] => Resource id #1 [3] => admin_logistock ) ) [5] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2.php [line] => 3442 [function] => query [class] => MDB2_Driver_Common [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [1] => ) ) [6] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2/Extended.php [line] => 504 [function] => queryAll [class] => MDB2_Driver_Common [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [1] => [2] => 0 [3] => [4] => [5] => ) ) [7] => Array ( [function] => getAll [class] => MDB2_Extended [object] => MDB2_Extended Object ( [db_index:protected] => 1 ) [type] => -> [args] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ) ) [8] => Array ( [file] => /home/admin/web/logistock.ru/public_html/MDB2.php [line] => 1994 [function] => call_user_func_array [args] => Array ( [0] => Array ( [0] => MDB2_Extended Object ( [db_index:protected] => 1 ) [1] => getAll ) [1] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ) ) ) [9] => Array ( [file] => /home/admin/web/logistock.ru/public_html/lib/Item.php [line] => 963 [function] => __call [class] => MDB2_Driver_Common [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => getAll [1] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ) ) ) [10] => Array ( [file] => /home/admin/web/logistock.ru/public_html/lib/Item.php [line] => 963 [function] => getAll [class] => MDB2_Driver_mysql [object] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 ) ) [11] => Array ( [file] => /home/admin/web/logistock.ru/public_html/index.php [line] => 462 [function] => listAllParams [class] => Item [type] => :: [args] => Array ( [0] => MDB2_Driver_mysql Object ( [string_quoting] => Array ( [start] => ' [end] => ' [escape] => \ [escape_pattern] => \ ) [identifier_quoting] => Array ( [start] => ` [end] => ` [escape] => ` ) [sql_comments] => Array ( [0] => Array ( [start] => -- [end] => [escape] => ) [1] => Array ( [start] => # [end] => [escape] => ) [2] => Array ( [start] => /* [end] => */ [escape] => ) ) [server_capabilities_checked:protected] => 1 [start_transaction:protected] => 1 [varchar_max_length] => 65532 [datatype] => [extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) [function] => [manager] => [native] => [reverse] => [db_index] => 1 [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connected_dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => admin_logistock [password] => xpdmdZJfAO [protocol] => [hostspec] => localhost [port] => [socket] => [database] => [mode] => ) [connection] => Resource id #1 [opened_persistent] => [database_name] => admin_logistock [connected_database_name] => admin_logistock [connected_server_info] => 5.5.49 [supported] => Array ( [sequences] => emulated [indexes] => 1 [affected_rows] => 1 [summary_functions] => 1 [order_by_text] => 1 [transactions] => 1 [savepoints] => 1 [current_id] => emulated [limit_queries] => 1 [LOBs] => 1 [replace] => 1 [sub_selects] => 1 [triggers] => 1 [auto_increment] => 1 [primary_key] => 1 [result_introspection] => 1 [prepared_statements] => 1 [identifier_quoting] => 1 [pattern_escaping] => 1 [new_link] => 1 ) [options] => Array ( [ssl] => [field_case] => 0 [disable_query] => [result_class] => MDB2_Result_%s [buffered_result_class] => MDB2_BufferedResult_%s [result_wrap_class] => [result_buffering] => 1 [fetch_class] => stdClass [persistent] => [debug] => 0 [debug_handler] => MDB2_defaultDebugOutput [debug_expanded_output] => [default_text_field_length] => 4096 [lob_buffer_length] => 8192 [log_line_break] => [idxname_format] => %s_idx [seqname_format] => %s_seq [savepoint_format] => MDB2_SAVEPOINT_%s [statement_format] => MDB2_STATEMENT_%1$s_%2$s [seqcol_name] => sequence [quote_identifier] => [use_transactions] => 1 [decimal_places] => 2 [portability] => 0 [modules] => Array ( [ex] => Extended [dt] => Datatype [mg] => Manager [rv] => Reverse [na] => Native [fc] => Function ) [emulate_prepared] => [datatype_map] => Array ( ) [datatype_map_callback] => Array ( ) [nativetype_map_callback] => Array ( ) [lob_allow_url_include] => [bindname_format] => (?:\d+)|(?:[a-zA-Z][a-zA-Z0-9_]*) [max_identifiers_length] => 64 [default_fk_action_onupdate] => RESTRICT [default_fk_action_ondelete] => RESTRICT [DBA_username] => [DBA_password] => [default_table_type] => ) [wildcards:protected] => Array ( [0] => % [1] => _ ) [as_keyword] => AS [warnings] => Array ( ) [debug_output] => [in_transaction] => [nested_transaction_counter] => [has_transaction_error:protected] => [offset] => 0 [limit] => 0 [phptype] => mysql [dbsyntax] => mysql [last_query] => select SQL_CALC_FOUND_ROWS i.*, sc.name, sc.alias4url, ip_price.value_int price, v_avail.value_varchar avail , group_concat(sale_sc.name) sale_names, group_concat(sale_sc.alias4url) sale_alias4urls, group_concat(sale_i.id) sale_ids , ip_avail.prop_value_id avail_id , ip_cat.prop_value_id cat_id , v_type.value_varchar cat , v_brand.value_varchar brand , group_concat(distinct p.id order by p.id) mands , REPLACE(sc.name, '&', '&') name4xml , max(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE((concat(ii.static_img_id, '_', si.orig_filename)), ' ', '%20'), '\#', '%23'), '&', '&'), '+', '%2B'), ',', '-')) prim_img_fn , IF(ubd.id is not null and bd.discount>12, round(ip_price.value_int*(bd.discount-12)/400),0) as basic_bonus , v_cat.alias4url cat_alias4url , ip_cat.prop_value_id category_id , ip_brand.prop_value_id brand_id , IF(ubd.id is not null, round(IF(bd.discount>12,ip_price.value_int*(bd.discount-12)/800,0) + ip_price.value_int*bd.bonus/1000),0) as expert_bonus , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( sc.html, ' ', ''), '—', '-'), '–', '-'), '«', '"'), '»', '"'), '®', '') , '°', 'o'), '•', '-'), '“', '"'), '”', '"') description , max(ig.item_gift_id) item_gift_id , max(gsc.name) gift_name , IFNULL(ima.articul, iua.articul) articul, IFNULL(ima.name, iua.name) articul_name from item i join static_content sc on sc.id=i.static_id join static_img si on si.static_id=i.static_id and si.prim join item_img ii on si.id=ii.static_img_id join item_prop_value ip_price on ip_price.prop_id=1 and ip_price.item_id=i.id join item_prop_value ip_brand on ip_brand.prop_id=4 and ip_brand.item_id=i.id join item_prop_value ip_cat on ip_cat.prop_id=3 and ip_cat.item_id=i.id join item_prop_value ip_type on ip_type.prop_id=35 and ip_type.item_id=i.id join prop_value v_type on v_type.id=ip_type.prop_value_id join prop_value v_brand on v_brand.id=ip_brand.prop_value_id join prop_value v_cat on v_cat.id=ip_cat.prop_value_id left join item_gift ig on ig.item_id=i.id left join item igi on igi.id=ig.item_gift_id left join static_content gsc on gsc.id=igi.static_id left join item_prop_value ip_avail on ip_avail.prop_id=2 and ip_avail.item_id=i.id left join prop_value v_avail on v_avail.id=ip_avail.prop_value_id left join item_prop_value pv on pv.item_id=i.id left join prop p on p.id=pv.prop_id and p.mand left join prop_value v on v.id=pv.prop_value_id left join bonus_disco bd on IF(bd.category_id=0, ip_cat.prop_value_id, bd.category_id)=ip_cat.prop_value_id and IF(bd.brand_id=0, ip_brand.prop_value_id, bd.brand_id)=ip_brand.prop_value_id left join users ubd on ubd.id=bd.user_id left join `item_manuf_articul` ima on i.id=ima.item_id left join `item_user_avail` iua on i.id=iua.item_id left join item sale_i on sale_i.sale_id=i.id left join static_content sale_sc on sale_sc.id=sale_i.static_id left join item_prop_value pv3 on pv3.prop_id=3 and pv3.item_id=i.id left join prop_value v3 on v3.id=pv3.prop_value_id where 1 and (IFNULL(pv3.prop_value_id,'') in ('acoustic') or v3.alias4url in ('acoustic') ) and i.id in (20,21,22,23,24,25,82,83,92,94,95,97,98,104,105,107,112,113,10004,10005,10006,10007,10008,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,11517,11518,11519,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11560,11561,11562,11563,11564,11565,11566,11567,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11624,11625,11626,11627,11628,11629,11630,11631,11632,11633,11634,11635,11636,11637,11638,11639,11640,11641,11642,11643,11644,11645,11646,11647,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11693,11726,11727,11728,11729,11730,11769,11808,11809,11845,11882,11883,11884,11927,11970,11971,11972,12013,12054,12055,12056,12097,12138,12139,12140,12141,12142,12143,12144,12145,12146,12147,12148,12149,12150,12151,12152,12153,12154,12155,12156,12157,12158,12252,12253,12254,12255,12256,14563,14564,14566,14567,14568,14573,14574,14576,14577,14578,14579,14581,14582,14583,14584,14587,14588,14589,14592,14593,14595,14596,14599,14612,14613,14614,14616,14635,14645,14655,14660,14662,14670,14671,14685,14686,14691,14693,14696,14697,14700,14701,14702,14710,14711,14712,14713,14714,14717,14718,14719,14724,14725,14734,14741,14742,14743,14744,14745,14746,14749,14751,14752,14766,14767,14768,14789,14790,14791,14792,14793,14794,14805,14806,14807,14812,14813,14816,14817,14818,14819,14820,14823,14832,14833,14840,14841,14845,14846,14849,14850,14861,14862,14866,14874,14875,14883,14884,14885,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15021,15022,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15205,15206,15207,15208,15209,15210,15211,15212,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15289,15290,15291,15292,15293,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15340,15341,15343,15344,15345,15346,15347,15348,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15396,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15432,15435,15436,15437,15438,15439,15440,15441,15442,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,18736,18739,18747,18748,18763,18764,18799,18871,18963,18972,18973,19002,19003,19004,19005,19006,19007,19008,19009,19010,19018,19023,19026,19027,19028,19029,19031,19032,19033,19034,19035,19039,19040,19041,19042,19046,19051,19088,19090,19105,19106,19107,19114,19124,19126,19127,19135,19136,19137,19138,19172,19173,19177,19199,19200,19222,19223,19224,19225,19247,19249,19250,19251,19252,19253,19303,19309,19310,19311,19312,19313,19314,19315,19316,19317,19320,19323,19327,19328,19329,19331,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19391,19392,19393,19394,19402,19416,19417,19418,19419,19420,19428,19457,19458,19459,19460,19465,19466,19478,19538,19558,19559,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19585,19593,19594,19595,19596,19597,19598,19599,19600,19601,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19717,19722,19723,19724,19725,19726,19746,19747,20117,20131,20133,20137,20158,20163,20165,20168,20170,20173,20182,20353,20354,20355,20356,20359,20360,20361,20373,20374,20375,20376,20381,20382,20383,20384,20385,20387,20388,20404,21320,21321,21322,21323,21324,21325,21326,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21342,21345,21346,21348,21349,21350,21351,21352,21353,21354,21355,21358,21359,21360,21361,21362,21364,21365,21366,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21386,21387,21388,21389,21390,21391,21393,21394,21639,21641,21642,21643,21648,21649,21650,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21799,21800,21802,21803,21804,21805,21806,21813,21814,21818,21819,21820,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21864,21865,21866,21867,21922,21944,21955,21958,21959,21960,21961,21962,21969,21970,21971,21972,22053,22054,22058,22059,22060,22061,22079,22114,22115,22118,22120,22124,22130,22131,22144,22145,22146,22147,22150,22160,22161,22164,22175,22176,22177,22178,22179,22180,22182,22183,22184,22185,22294,22302,22303,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27743,27744,27746,27747,27748,27749,27750,27751,27752,27753,27754,44232,44683,44684,44685,44687,44688,44689,44692,44694,44696,44697,44698,44727,44729,44751,44758,44759,44763,44766,44770,44787,44789,44790,44791,44793,44795,44796,44797,44798,44801,44802,44804,44805,44806,44807,44808,44811,44812,44813,44815,44817,44818,44819,44840,44841,44842,44858,44859,44860,44861,44862,44863,44864,44866,44867,44868,44869,44979,44980,44981,44982,44984,44985,44986,44987,44988,44989,44993,44994,44995,45018,45023,45594,45600,45605,45606,45607,45624,45627,45628,45629,45630,45634,45636,45637,45659,46053,46054,46055,46056,46057,46058,46059,46062,46063,46433,46434,46435,46437,46438,46439,46440,46441,46442,46443,46444,46447,46448,46449,46450,46451,46452,46455,46456,46457,46458,46459,46461,46464,46465,46466,46468,46473,46515,46517,46518,46519,46520,46521,46531,46566,46569,46571,46576,46590,46603,46606,46631,46706,46710,47512,47535,47552,47553,47556,47558,47586,47610,47611,47612,47639,47640,47710,47723,47733,47745,47746,48388,48389,49089,49090,49091,49094,49095,49098,49101,49103,49107,49108,49109,49110,49112,49116,49118,49119,49136,49139,49143,49144,49168,49169,49170,49171,49172,49355,49359) and i.black=0 group by i.id having group_concat(distinct p.id order by p.id) = '1,3,4,35' and prim_img_fn and prim_img_fn is not null and price>0 [fetchmode] => 3 [modules:protected] => Array ( [Extended] => MDB2_Extended Object ( [db_index:protected] => 1 ) ) [destructor_registered:protected] => 1 [pear:protected] => PEAR Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) ) ) [1] => Array ( [img] => 1 [cat] => Array ( [0] => acoustic ) ) ) ) ) [callback] => )