2013 - Lost connection to MySQL server during query

select distinct p.products_id, p.designers_id, pd.products_name, meta_title, mark_status from products p, products_description pd, products_quantity pq where (p.products_id=829 or p.products_id=693 or p.products_id=356 or p.products_id=739 or p.products_id=859 or p.products_id=828 or p.products_id=125 or p.products_id=131 or p.products_id=149 or p.products_id=429 or p.products_id=190 or p.products_id=423 or p.products_id=1407 or p.products_id=433 or p.products_id=180 or p.products_id=338 or p.products_id=317 or p.products_id=219 or p.products_id=416 or p.products_id=260 or p.products_id=171 or p.products_id=297 or p.products_id=559 or p.products_id=307 or p.products_id=341 or p.products_id=425 or p.products_id=542 or p.products_id=748 or p.products_id=440 or p.products_id=432 or p.products_id=295 or p.products_id=360 or p.products_id=222 or p.products_id=415 or p.products_id=827 or p.products_id=140 or p.products_id=141 or p.products_id=142 or p.products_id=145 or p.products_id=146 or p.products_id=785 or p.products_id=784 or p.products_id=151 or p.products_id=870 or p.products_id=300 or p.products_id=301 or p.products_id=150 or p.products_id=148 or p.products_id=133 or p.products_id=134 or p.products_id=123 or p.products_id=138 or p.products_id=130 or p.products_id=135 or p.products_id=124 or p.products_id=137 or p.products_id=486 or p.products_id=743 or p.products_id=473 or p.products_id=472 or p.products_id=475 or p.products_id=476 or p.products_id=479 or p.products_id=470 or p.products_id=471 or p.products_id=474 or p.products_id=749 or p.products_id=350 or p.products_id=185 or p.products_id=324 or p.products_id=296 or p.products_id=241 or p.products_id=242 or p.products_id=259 or p.products_id=258 or p.products_id=240 or p.products_id=239 or p.products_id=354 or p.products_id=352 or p.products_id=825 or p.products_id=1389 or p.products_id=670 or p.products_id=221 or p.products_id=370 or p.products_id=371 or p.products_id=228 or p.products_id=236 or p.products_id=244 or p.products_id=245 or p.products_id=751 or p.products_id=750 or p.products_id=175 or p.products_id=176 or p.products_id=742 or p.products_id=336 or p.products_id=758 or p.products_id=757 or p.products_id=756 or p.products_id=755 or p.products_id=754 or p.products_id=753 or p.products_id=379 or p.products_id=377 or p.products_id=997 or p.products_id=405 or p.products_id=406 or p.products_id=414 or p.products_id=407 or p.products_id=417 or p.products_id=412 or p.products_id=408 or p.products_id=418 or p.products_id=229 or p.products_id=230 or p.products_id=724 or p.products_id=723 or p.products_id=738 or p.products_id=519 or p.products_id=545 or p.products_id=516 or p.products_id=529 or p.products_id=531 or p.products_id=530 or p.products_id=1414 or p.products_id=518 or p.products_id=558 or p.products_id=566 or p.products_id=524 or p.products_id=586 or p.products_id=587 or p.products_id=741 or p.products_id=589 or p.products_id=590 or p.products_id=591 or p.products_id=858 or p.products_id=603 or p.products_id=604 or p.products_id=873 or p.products_id=607 or p.products_id=608 or p.products_id=609 or p.products_id=610 or p.products_id=635 or p.products_id=636 or p.products_id=637 or p.products_id=638 or p.products_id=640 or p.products_id=641 or p.products_id=642 or p.products_id=643 or p.products_id=644 or p.products_id=645 or p.products_id=646 or p.products_id=647 or p.products_id=786 or p.products_id=649 or p.products_id=478 or p.products_id=831 or p.products_id=830 or p.products_id=268 or p.products_id=869 or p.products_id=759 or p.products_id=768 or p.products_id=776 or p.products_id=778 or p.products_id=775 or p.products_id=779 or p.products_id=797 or p.products_id=798 or p.products_id=800 or p.products_id=799 or p.products_id=803 or p.products_id=804 or p.products_id=802 or p.products_id=808 or p.products_id=809 or p.products_id=838 or p.products_id=840 or p.products_id=860 or p.products_id=861 or p.products_id=862 or p.products_id=863 or p.products_id=864 or p.products_id=865 or p.products_id=866 or p.products_id=867 or p.products_id=868 or p.products_id=871 or p.products_id=874 or p.products_id=875 or p.products_id=876 or p.products_id=877 or p.products_id=878 or p.products_id=879 or p.products_id=880 or p.products_id=881 or p.products_id=883 or p.products_id=1581 or p.products_id=891 or p.products_id=1580 or p.products_id=1579 or p.products_id=1592 or p.products_id=1443 or p.products_id=1444 or p.products_id=1445 or p.products_id=922 or p.products_id=929 or p.products_id=1297 or p.products_id=1296 or p.products_id=938 or p.products_id=1441 or p.products_id=1591 or p.products_id=970 or p.products_id=971 or p.products_id=973 or p.products_id=974 or p.products_id=975 or p.products_id=976 or p.products_id=986 or p.products_id=987 or p.products_id=988 or p.products_id=989 or p.products_id=990 or p.products_id=991 or p.products_id=992 or p.products_id=993 or p.products_id=994 or p.products_id=995 or p.products_id=996 or p.products_id=999 or p.products_id=1002 or p.products_id=1024 or p.products_id=1026 or p.products_id=1025 or p.products_id=1027 or p.products_id=1028 or p.products_id=1029 or p.products_id=1043 or p.products_id=1044 or p.products_id=1045 or p.products_id=1046 or p.products_id=1047 or p.products_id=1048 or p.products_id=1049 or p.products_id=1050 or p.products_id=1051 or p.products_id=1052 or p.products_id=1053 or p.products_id=1054 or p.products_id=1055 or p.products_id=1056 or p.products_id=1059 or p.products_id=1060 or p.products_id=1061 or p.products_id=1062 or p.products_id=1063 or p.products_id=1064 or p.products_id=1065 or p.products_id=1066 or p.products_id=1077 or p.products_id=1078 or p.products_id=1080 or p.products_id=1081 or p.products_id=1082 or p.products_id=1083 or p.products_id=1084 or p.products_id=1085 or p.products_id=1086 or p.products_id=1087 or p.products_id=1088 or p.products_id=1089 or p.products_id=1090 or p.products_id=1091 or p.products_id=1092 or p.products_id=1093 or p.products_id=1094 or p.products_id=1095 or p.products_id=1096 or p.products_id=1097 or p.products_id=1098 or p.products_id=1099 or p.products_id=1100 or p.products_id=1101 or p.products_id=1102 or p.products_id=1103 or p.products_id=1104 or p.products_id=1105 or p.products_id=1106 or p.products_id=1107 or p.products_id=1108 or p.products_id=1109 or p.products_id=924 or p.products_id=426 or p.products_id=774 or p.products_id=1139 or p.products_id=1140 or p.products_id=1141 or p.products_id=1142 or p.products_id=1143 or p.products_id=1144 or p.products_id=1145 or p.products_id=1146 or p.products_id=1147 or p.products_id=1148 or p.products_id=1149 or p.products_id=1150 or p.products_id=1151 or p.products_id=1152 or p.products_id=1153 or p.products_id=1154 or p.products_id=1155 or p.products_id=1156 or p.products_id=1157 or p.products_id=1158 or p.products_id=1159 or p.products_id=1160 or p.products_id=1161 or p.products_id=1162 or p.products_id=1163 or p.products_id=1164 or p.products_id=1165 or p.products_id=1166 or p.products_id=1167 or p.products_id=1168 or p.products_id=1169 or p.products_id=1170 or p.products_id=1171 or p.products_id=1172 or p.products_id=1173 or p.products_id=1174 or p.products_id=1175 or p.products_id=1176 or p.products_id=1177 or p.products_id=1178 or p.products_id=1179 or p.products_id=1180 or p.products_id=1181 or p.products_id=1182 or p.products_id=1183 or p.products_id=1184 or p.products_id=1185 or p.products_id=1186 or p.products_id=1187 or p.products_id=1188 or p.products_id=1189 or p.products_id=1190 or p.products_id=1191 or p.products_id=1192 or p.products_id=1193 or p.products_id=1194 or p.products_id=1195 or p.products_id=1196 or p.products_id=1197 or p.products_id=1198 or p.products_id=1199 or p.products_id=1200 or p.products_id=1201 or p.products_id=1202 or p.products_id=1203 or p.products_id=1204 or p.products_id=1205 or p.products_id=1206 or p.products_id=1207 or p.products_id=810 or p.products_id=477 or p.products_id=496 or p.products_id=1719 or p.products_id=1718 or p.products_id=1717 or p.products_id=1716 or p.products_id=1715 or p.products_id=1714 or p.products_id=1713 or p.products_id=1712 or p.products_id=1711 or p.products_id=1710 or p.products_id=1709 or p.products_id=1265 or p.products_id=1266 or p.products_id=1267 or p.products_id=1272 or p.products_id=1276 or p.products_id=1277 or p.products_id=1282 or p.products_id=1283 or p.products_id=1284 or p.products_id=1285 or p.products_id=1293 or p.products_id=1294 or p.products_id=1295 or p.products_id=1298 or p.products_id=1299 or p.products_id=1300 or p.products_id=1301 or p.products_id=1302 or p.products_id=1303 or p.products_id=1304 or p.products_id=1305 or p.products_id=1306 or p.products_id=1307 or p.products_id=1308 or p.products_id=1309 or p.products_id=1310 or p.products_id=1311 or p.products_id=1312 or p.products_id=1313 or p.products_id=1314 or p.products_id=1315 or p.products_id=1316 or p.products_id=1317 or p.products_id=1318 or p.products_id=1319 or p.products_id=1320 or p.products_id=1321 or p.products_id=1322 or p.products_id=1323 or p.products_id=1324 or p.products_id=1325 or p.products_id=1326 or p.products_id=1328 or p.products_id=1329 or p.products_id=1330 or p.products_id=1331 or p.products_id=1332 or p.products_id=1333 or p.products_id=1334 or p.products_id=1335 or p.products_id=1336 or p.products_id=1337 or p.products_id=1338 or p.products_id=1339 or p.products_id=1340 or p.products_id=1341 or p.products_id=1342 or p.products_id=1343 or p.products_id=1346 or p.products_id=1347 or p.products_id=1348 or p.products_id=1352 or p.products_id=1353 or p.products_id=1354 or p.products_id=1355 or p.products_id=1356 or p.products_id=1358 or p.products_id=1359 or p.products_id=1360 or p.products_id=1361 or p.products_id=1362 or p.products_id=1363 or p.products_id=1364 or p.products_id=1365 or p.products_id=1366 or p.products_id=1367 or p.products_id=1368 or p.products_id=1369 or p.products_id=1372 or p.products_id=1373 or p.products_id=1374 or p.products_id=1375 or p.products_id=1376 or p.products_id=1377 or p.products_id=1378 or p.products_id=1379 or p.products_id=1380 or p.products_id=1381 or p.products_id=1382 or p.products_id=1383 or p.products_id=1385 or p.products_id=1386 or p.products_id=1387 or p.products_id=1388 or p.products_id=1390 or p.products_id=1391 or p.products_id=1392 or p.products_id=1393 or p.products_id=1394 or p.products_id=1395 or p.products_id=1396 or p.products_id=1397 or p.products_id=1398 or p.products_id=1399 or p.products_id=1400 or p.products_id=1401 or p.products_id=1402 or p.products_id=1403 or p.products_id=1404 or p.products_id=1405 or p.products_id=1406 or p.products_id=1408 or p.products_id=1409 or p.products_id=1410 or p.products_id=1411 or p.products_id=1412 or p.products_id=1413 or p.products_id=1415 or p.products_id=1442 or p.products_id=1417 or p.products_id=1418 or p.products_id=1419 or p.products_id=1420 or p.products_id=1421 or p.products_id=1422 or p.products_id=1423 or p.products_id=1424 or p.products_id=1425 or p.products_id=1426 or p.products_id=1427 or p.products_id=1428 or p.products_id=1429 or p.products_id=1430 or p.products_id=1446 or p.products_id=1447 or p.products_id=1448 or p.products_id=1449 or p.products_id=1450 or p.products_id=1451 or p.products_id=1452 or p.products_id=1453 or p.products_id=1454 or p.products_id=1455 or p.products_id=1457 or p.products_id=1456 or p.products_id=1476 or p.products_id=1477 or p.products_id=1484 or p.products_id=1485 or p.products_id=1486 or p.products_id=1487 or p.products_id=1543 or p.products_id=1582 or p.products_id=1583 or p.products_id=1584 or p.products_id=1593 or p.products_id=1594 or p.products_id=1595 or p.products_id=1596 or p.products_id=1597 or p.products_id=1598 or p.products_id=1604 or p.products_id=1605 or p.products_id=1606 or p.products_id=1607 or p.products_id=1608 or p.products_id=1609 or p.products_id=1610 or p.products_id=1611 or p.products_id=1612 or p.products_id=1613 or p.products_id=1614 or p.products_id=1615 or p.products_id=1648 or p.products_id=1649 or p.products_id=1650 or p.products_id=1651 or p.products_id=1652 or p.products_id=1654 or p.products_id=1655 or p.products_id=1697 or p.products_id=1699 or p.products_id=1696 or p.products_id=1695 or p.products_id=1685 or p.products_id=1686 or p.products_id=1687 or p.products_id=1688 or p.products_id=1690 or p.products_id=1691 or p.products_id=1692 or p.products_id=1693 or p.products_id=1694 or p.products_id=1700 or p.products_id=1701 or p.products_id=1702 or p.products_id=1703 or p.products_id=1706 or p.products_id=1707 or p.products_id=1708 or p.products_id=1720 or p.products_id=1721 or p.products_id=1722 or p.products_id=1723 or p.products_id=1724 or p.products_id=1725) and p.status = 1 and p.products_id = pq.products_id and p.products_id = pd.products_id and pd.languages_id = '1' order by pd.products_id desc limit 0, 450

[TEP STOP]

2006 - MySQL server has gone away

select count(*) as total from sessions where sesskey = '60h8cb1pc6s0vp066uocohae60'

[TEP STOP]