File: /home/bitrix/www/bitrix/modules/catalog/mysql/discount.php
Line: 324
MySQL Query Error: SELECT CD.ID as ID, CD.TYPE as TYPE, CD.SITE_ID as SITE_ID, CD.ACTIVE as ACTIVE, DATE_FORMAT(CD.ACTIVE_FROM, '%d.%m.%Y %H:%i:%s') as ACTIVE_FROM, DATE_FORMAT(CD.ACTIVE_TO, '%d.%m.%Y %H:%i:%s') as ACTIVE_TO, CD.RENEWAL as RENEWAL, CD.NAME as NAME, CD.SORT as SORT, CD.MAX_DISCOUNT as MAX_DISCOUNT, CD.VALUE_TYPE as VALUE_TYPE, CD.VALUE as VALUE, CD.CURRENCY as CURRENCY, CD.PRIORITY as PRIORITY, CD.LAST_DISCOUNT as LAST_DISCOUNT, CDCP.COUPON as COUPON, CDCP.ONE_TIME as COUPON_ONE_TIME, CDCP.ACTIVE as COUPON_ACTIVE, CD.UNPACK as UNPACK, CD.CONDITIONS as CONDITIONS FROM b_catalog_discount CD LEFT JOIN b_catalog_discount_coupon CDCP ON (CD.ID = CDCP.DISCOUNT_ID) WHERE ((((CD.ID IN (805,806,807,808,809,810,811,813,816,817,826,828,829,830,831,832,833,837,839,840,841,842,843,845,846,847,848,849,850,852,865,866,761,766,762,769,758,763,773,572,863,854,856,858,859,855,874,615,749,631,495,770,768,767,400,885,889,888,887,886,890,891,892,893,894,895,899,900,908,898,877,882,881,880,872,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,946,947,948,953,954,955,956,957,958,963,966,968,969,970,971,972,974,975,978,979,980,981,982,983,984,985,986,987,988,990,991,992,994,995,996,997,998,999,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1014,1016,1017,1018,1019,1020,1021,1022,1023,1025,1026,1015,945,1013,1031,1032,1034,1024,1038,1037,1039,1040,1041,876,1042,1043,1045,851,1050,1051,401,1054,1055,1059,1058,1060,1062,1063,1066,1069,1070,1071,1072,1073,1074,1075,1076,1078,1079,1081,1082,1084,1086,1087,1085,1088,1089,1091,949,798,1092,901,1100,1101,1104,1106,1107,1108,1110,873,1105,1116,1115,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,960,961,962,950,951,952,959,964,967,1080,965,1083,1223,1224,1225,1226,1222,1227,1228,1229,883,1111,1114,1113,1112,573,1230,1077,1231,1232,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1252,1255,1256,1257,1259,1263,1266,1268,1276,1277,1286,1287,1288,1289,1292,1299,853,1033,1304,1313,1315,1316,1320,1324,1325,1326,1328,1329,1330,1336,1343,1346,1347,1350,1353,1354,1355,1356,1358,1361,1375,1378,1383,1385,1386,1387,1391,1392,1396,1398,1400,1401,1407,1408,1409,1410,1416,1424,1425,1426,1427,1430,1433,1438,1440,1455,1457,1057,1454,1453,1452,1451,1450,666,1458,1459,1460,1461,1463,1467,1445,989,1468,1068,1001,1109,1473,815,814,812,1470,1469,1456,1475,1477,1478,1479,1482,792,793,801,802,803,804,823,1064,1065,1483,1492,1493,1494,1495,1474,1498,1497,1499,1500,1501,1502,1503,1505,1586))))) and ((((CD.SITE_ID = 's1' )))) and ((((CD.TYPE IS NULL) OR (CD.TYPE = 0)))) and ((((CD.RENEWAL = 'N' )))) and ((((CD.ACTIVE_FROM <= '2019-01-24 14:11:32')) OR (CD.ACTIVE_FROM IS NULL))) and ((((CD.ACTIVE_TO >= '2019-01-24 14:11:32')) OR (CD.ACTIVE_TO IS NULL))) and (((CDCP.COUPON IS NULL) OR (CDCP.COUPON = '')))[[2006] MySQL server has gone away]

DB query error.
Please try later.