Incorrect string value: '\xA1\xD1\x82\xD1\x80\xD0...' for column 'path' at row 1
SELECT pot.*, pot.name_ru AS _name_sort, povt.* FROM (select * from sc_product_options_values where productID IN ('82330','108038','83463','83699','83896','83897','58876','61045','86866','89055','112389','112390','112391','112392','112393','58156','83441','83462','83860','83859','108797','108796','108120','108979','83850','123821','100021','107537','81645','99899','106883','121825','123819','121601','122178','122606','107512','115778','123820','98208','106801','115666','116109','123294','123133','123155','88133','88134','88142','88143','62320','59826','59827','82323','123288','107469','116723','121956','123031','87472','122116','123130','82332','88039','88525','88556','88863','101480','101633','122774','120971','117281','120940','121109','122130','123154','82275','82321','88037','88038','89646','108037','106967','116621','115960','120947','122065','122791','38997','92864','93775','103336','103708','103709','105801','92863','93777','103707','103710','122520','122425','68075','68076','68077','68078','68079','68080','105436','117895','105478','117861','83434','83846','83427','83843','107623','70390','70392','70394','70395','70389','70391','70393','70396','106353','122137','120884','70432','106935','117399','123287','120882','123134','120942','121798','122770','123151','70399','70428','106930','115968','70400','70417','70419','70421','70426','70434','70437','70397','70404','70407','70416','70418','70425','70429','70433','70438','70439','70440','70430','70398','70406','70409','70420','70427','70436','70405','70408','70410','70424','70435','57732','58833','68085','68065','68081','68088','105320','105321','105322','105535','105557','117867','68082','68083','68084','68086','105323','105534','105541','105546','105555','117896','99005','107024','107466','117396','123286','123814','120881','123131','123815','107027','107031','120939','121797','122129','122771','123152','107036','115963','117194','117402','122067','122134','122787','99506','107255','99505','107256','99007','122136','123291','123816','123813','123817','81511','81516','106976','107950','108024','108031','120883','122336','123292','117398','122269','107282','107020','107021','107442','107470','108039','115958','117200','120943','121799','122131','122772','122792','123141','88131','100798','105438','83926','119044','62388','66905','83948','42964','38224','101141','82353','107050','107468','122271','123030','123289','123132','107042','107051','120941','122128','122773','123153','82532','107049','107599','108036','115959','122066','83439','83847','83436','83844','83845','83435','83842','83440','83437','115810','115811','81002','99504','107254','69975','112432','112433','83851','84855','117397','123293','80866','120885','120945','121801','122763','123140','115956','117170','82270','82310','90173','96060','99004','106957','107621','117400','122272','123290','82309','107277','107467','107780','120880','123135','82297','106972','107759','116156','122775','120944','121800','123142','82307','106964','107636','108040','115957','117210','67620','69352','92467','99657','112876','118791','118828','114788') UNION (select 99, productID, 0, 1, NULL, GROUP_CONCAT(txt SEPARATOR ', ') from sc_params_values INNER JOIN sc_params on sc_params_values.paramID=sc_params.id where sc_params_values.productID IN ('82330','108038','83463','83699','83896','83897','58876','61045','86866','89055','112389','112390','112391','112392','112393','58156','83441','83462','83860','83859','108797','108796','108120','108979','83850','123821','100021','107537','81645','99899','106883','121825','123819','121601','122178','122606','107512','115778','123820','98208','106801','115666','116109','123294','123133','123155','88133','88134','88142','88143','62320','59826','59827','82323','123288','107469','116723','121956','123031','87472','122116','123130','82332','88039','88525','88556','88863','101480','101633','122774','120971','117281','120940','121109','122130','123154','82275','82321','88037','88038','89646','108037','106967','116621','115960','120947','122065','122791','38997','92864','93775','103336','103708','103709','105801','92863','93777','103707','103710','122520','122425','68075','68076','68077','68078','68079','68080','105436','117895','105478','117861','83434','83846','83427','83843','107623','70390','70392','70394','70395','70389','70391','70393','70396','106353','122137','120884','70432','106935','117399','123287','120882','123134','120942','121798','122770','123151','70399','70428','106930','115968','70400','70417','70419','70421','70426','70434','70437','70397','70404','70407','70416','70418','70425','70429','70433','70438','70439','70440','70430','70398','70406','70409','70420','70427','70436','70405','70408','70410','70424','70435','57732','58833','68085','68065','68081','68088','105320','105321','105322','105535','105557','117867','68082','68083','68084','68086','105323','105534','105541','105546','105555','117896','99005','107024','107466','117396','123286','123814','120881','123131','123815','107027','107031','120939','121797','122129','122771','123152','107036','115963','117194','117402','122067','122134','122787','99506','107255','99505','107256','99007','122136','123291','123816','123813','123817','81511','81516','106976','107950','108024','108031','120883','122336','123292','117398','122269','107282','107020','107021','107442','107470','108039','115958','117200','120943','121799','122131','122772','122792','123141','88131','100798','105438','83926','119044','62388','66905','83948','42964','38224','101141','82353','107050','107468','122271','123030','123289','123132','107042','107051','120941','122128','122773','123153','82532','107049','107599','108036','115959','122066','83439','83847','83436','83844','83845','83435','83842','83440','83437','115810','115811','81002','99504','107254','69975','112432','112433','83851','84855','117397','123293','80866','120885','120945','121801','122763','123140','115956','117170','82270','82310','90173','96060','99004','106957','107621','117400','122272','123290','82309','107277','107467','107780','120880','123135','82297','106972','107759','116156','122775','120944','121800','123142','82307','106964','107636','108040','115957','117210','67620','69352','92467','99657','112876','118791','118828','114788') GROUP BY productID order by sc_params.id asc) union (select 32,fp.productid,0,1,null,getskladfullpath(option_value_ru) as option_value_ru from sc_product_options_values as fp where productID IN ('82330','108038','83463','83699','83896','83897','58876','61045','86866','89055','112389','112390','112391','112392','112393','58156','83441','83462','83860','83859','108797','108796','108120','108979','83850','123821','100021','107537','81645','99899','106883','121825','123819','121601','122178','122606','107512','115778','123820','98208','106801','115666','116109','123294','123133','123155','88133','88134','88142','88143','62320','59826','59827','82323','123288','107469','116723','121956','123031','87472','122116','123130','82332','88039','88525','88556','88863','101480','101633','122774','120971','117281','120940','121109','122130','123154','82275','82321','88037','88038','89646','108037','106967','116621','115960','120947','122065','122791','38997','92864','93775','103336','103708','103709','105801','92863','93777','103707','103710','122520','122425','68075','68076','68077','68078','68079','68080','105436','117895','105478','117861','83434','83846','83427','83843','107623','70390','70392','70394','70395','70389','70391','70393','70396','106353','122137','120884','70432','106935','117399','123287','120882','123134','120942','121798','122770','123151','70399','70428','106930','115968','70400','70417','70419','70421','70426','70434','70437','70397','70404','70407','70416','70418','70425','70429','70433','70438','70439','70440','70430','70398','70406','70409','70420','70427','70436','70405','70408','70410','70424','70435','57732','58833','68085','68065','68081','68088','105320','105321','105322','105535','105557','117867','68082','68083','68084','68086','105323','105534','105541','105546','105555','117896','99005','107024','107466','117396','123286','123814','120881','123131','123815','107027','107031','120939','121797','122129','122771','123152','107036','115963','117194','117402','122067','122134','122787','99506','107255','99505','107256','99007','122136','123291','123816','123813','123817','81511','81516','106976','107950','108024','108031','120883','122336','123292','117398','122269','107282','107020','107021','107442','107470','108039','115958','117200','120943','121799','122131','122772','122792','123141','88131','100798','105438','83926','119044','62388','66905','83948','42964','38224','101141','82353','107050','107468','122271','123030','123289','123132','107042','107051','120941','122128','122773','123153','82532','107049','107599','108036','115959','122066','83439','83847','83436','83844','83845','83435','83842','83440','83437','115810','115811','81002','99504','107254','69975','112432','112433','83851','84855','117397','123293','80866','120885','120945','121801','122763','123140','115956','117170','82270','82310','90173','96060','99004','106957','107621','117400','122272','123290','82309','107277','107467','107780','120880','123135','82297','106972','107759','116156','122775','120944','121800','123142','82307','106964','107636','108040','115957','117210','67620','69352','92467','99657','112876','118791','118828','114788') and optionid=31)) as povt LEFT JOIN sc_product_options as pot ON pot.optionID=povt.optionID ORDER BY pot.sort_order, _name_sort