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=159 or p.products_id=161 or p.products_id=292 or p.products_id=249 or p.products_id=248 or p.products_id=815 or p.products_id=247 or p.products_id=261 or p.products_id=262 or p.products_id=263 or p.products_id=269 or p.products_id=787 or p.products_id=788 or p.products_id=275 or p.products_id=278 or p.products_id=281 or p.products_id=282 or p.products_id=288 or p.products_id=290 or p.products_id=289 or p.products_id=305 or p.products_id=365 or p.products_id=373 or p.products_id=375 or p.products_id=374 or p.products_id=550 or p.products_id=293 or p.products_id=547 or p.products_id=449 or p.products_id=450 or p.products_id=451 or p.products_id=836 or p.products_id=1132 or p.products_id=718 or p.products_id=403 or p.products_id=399 or p.products_id=398 or p.products_id=400 or p.products_id=832 or p.products_id=669 or p.products_id=783 or p.products_id=1125 or p.products_id=294 or p.products_id=277 or p.products_id=704 or p.products_id=453 or p.products_id=553 or p.products_id=483 or p.products_id=480 or p.products_id=285 or p.products_id=1407 or p.products_id=180 or p.products_id=708 or p.products_id=1126 or p.products_id=537 or p.products_id=317 or p.products_id=320 or p.products_id=158 or p.products_id=155 or p.products_id=157 or p.products_id=500 or p.products_id=456 or p.products_id=454 or p.products_id=216 or p.products_id=705 or p.products_id=706 or p.products_id=749 or p.products_id=376 or p.products_id=739 or p.products_id=484 or p.products_id=734 or p.products_id=736 or p.products_id=730 or p.products_id=502 or p.products_id=515 or p.products_id=512 or p.products_id=508 or p.products_id=509 or p.products_id=510 or p.products_id=511 or p.products_id=501 or p.products_id=505 or p.products_id=520 or p.products_id=1129 or p.products_id=1128 or p.products_id=529 or p.products_id=531 or p.products_id=728 or p.products_id=731 or p.products_id=737 or p.products_id=726 or p.products_id=526 or p.products_id=525 or p.products_id=522 or p.products_id=523 or p.products_id=527 or p.products_id=570 or p.products_id=516 or p.products_id=493 or p.products_id=535 or p.products_id=751 or p.products_id=750 or p.products_id=576 or p.products_id=575 or p.products_id=1127 or p.products_id=518 or p.products_id=566 or p.products_id=538 or p.products_id=540 or p.products_id=524 or p.products_id=792 or p.products_id=735 or p.products_id=711 or p.products_id=818 or p.products_id=513 or p.products_id=514 or p.products_id=635 or p.products_id=636 or p.products_id=637 or p.products_id=541 or p.products_id=837 or p.products_id=532 or p.products_id=733 or p.products_id=552 or p.products_id=539 or p.products_id=528 or p.products_id=557 or p.products_id=682 or p.products_id=681 or p.products_id=683 or p.products_id=684 or p.products_id=685 or p.products_id=686 or p.products_id=687 or p.products_id=688 or p.products_id=694 or p.products_id=551 or p.products_id=700 or p.products_id=701 or p.products_id=760 or p.products_id=761 or p.products_id=791 or p.products_id=794 or p.products_id=795 or p.products_id=800 or p.products_id=807 or p.products_id=808 or p.products_id=839 or p.products_id=841 or p.products_id=842 or p.products_id=845 or p.products_id=844 or p.products_id=846 or p.products_id=847 or p.products_id=848 or p.products_id=592 or p.products_id=593 or p.products_id=594 or p.products_id=852 or p.products_id=853 or p.products_id=854 or p.products_id=856 or p.products_id=891 or p.products_id=893 or p.products_id=895 or p.products_id=1586 or p.products_id=1585 or p.products_id=1588 or p.products_id=1587 or p.products_id=903 or p.products_id=913 or p.products_id=914 or p.products_id=906 or p.products_id=1444 or p.products_id=920 or p.products_id=918 or p.products_id=931 or p.products_id=932 or p.products_id=884 or p.products_id=939 or p.products_id=940 or p.products_id=942 or p.products_id=943 or p.products_id=944 or p.products_id=945 or p.products_id=1441 or p.products_id=962 or p.products_id=948 or p.products_id=961 or p.products_id=952 or p.products_id=954 or p.products_id=747 or p.products_id=816 or p.products_id=955 or p.products_id=956 or p.products_id=957 or p.products_id=958 or p.products_id=927 or p.products_id=888 or p.products_id=929 or p.products_id=930 or p.products_id=904 or p.products_id=960 or p.products_id=964 or p.products_id=965 or p.products_id=979 or p.products_id=980 or p.products_id=981 or p.products_id=982 or p.products_id=983 or p.products_id=984 or p.products_id=985 or p.products_id=998 or p.products_id=1000 or p.products_id=1001 or p.products_id=1004 or p.products_id=1005 or p.products_id=1015 or p.products_id=1016 or p.products_id=1017 or p.products_id=1018 or p.products_id=1019 or p.products_id=1020 or p.products_id=1021 or p.products_id=1022 or p.products_id=1023 or p.products_id=1030 or p.products_id=835 or p.products_id=699 or p.products_id=702 or p.products_id=725 or p.products_id=1037 or p.products_id=1038 or p.products_id=1039 or p.products_id=1040 or p.products_id=1041 or p.products_id=1042 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=1057 or p.products_id=1058 or p.products_id=1059 or p.products_id=959 or p.products_id=1067 or p.products_id=1068 or p.products_id=1069 or p.products_id=1070 or p.products_id=1071 or p.products_id=1072 or p.products_id=1073 or p.products_id=1074 or p.products_id=1078 or p.products_id=1079 or p.products_id=1080 or p.products_id=1103 or p.products_id=1104 or p.products_id=1106 or p.products_id=1107 or p.products_id=1108 or p.products_id=530 or p.products_id=494 or p.products_id=481 or p.products_id=843 or p.products_id=820 or p.products_id=488 or p.products_id=490 or p.products_id=492 or p.products_id=489 or p.products_id=1389 or p.products_id=372 or p.products_id=574 or p.products_id=573 or p.products_id=796 or p.products_id=793 or p.products_id=1123 or p.products_id=1124 or p.products_id=1130 or p.products_id=1131 or p.products_id=660 or p.products_id=218 or p.products_id=767 or p.products_id=769 or p.products_id=1133 or p.products_id=1134 or p.products_id=1135 or p.products_id=1136 or p.products_id=1137 or p.products_id=1138 or p.products_id=565 or p.products_id=336 or p.products_id=338 or p.products_id=466 or p.products_id=746 or p.products_id=740 or p.products_id=741 or p.products_id=744 or p.products_id=752 or p.products_id=1208 or p.products_id=1209 or p.products_id=1210 or p.products_id=1211 or p.products_id=1212 or p.products_id=1213 or p.products_id=1214 or p.products_id=1215 or p.products_id=1216 or p.products_id=1217 or p.products_id=1218 or p.products_id=1219 or p.products_id=1220 or p.products_id=1221 or p.products_id=1222 or p.products_id=1223 or p.products_id=1224 or p.products_id=1225 or p.products_id=1226 or p.products_id=1227 or p.products_id=778 or p.products_id=797 or p.products_id=1228 or p.products_id=1229 or p.products_id=1230 or p.products_id=1231 or p.products_id=1232 or p.products_id=1233 or p.products_id=1234 or p.products_id=1235 or p.products_id=1236 or p.products_id=1237 or p.products_id=1238 or p.products_id=1239 or p.products_id=1240 or p.products_id=1241 or p.products_id=762 or p.products_id=938 or p.products_id=882 or p.products_id=716 or p.products_id=536 or p.products_id=504 or p.products_id=1264 or p.products_id=1268 or p.products_id=1269 or p.products_id=1270 or p.products_id=1271 or p.products_id=1272 or p.products_id=1273 or p.products_id=1274 or p.products_id=1275 or p.products_id=1277 or p.products_id=1278 or p.products_id=1279 or p.products_id=1280 or p.products_id=1281 or p.products_id=1282 or p.products_id=1283 or p.products_id=1284 or p.products_id=1285 or p.products_id=1289 or p.products_id=1290 or p.products_id=830 or p.products_id=831 or p.products_id=1349 or p.products_id=1350 or p.products_id=1351 or p.products_id=1383 or p.products_id=1384 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=1414 or p.products_id=1415 or p.products_id=1443 or p.products_id=1442 or p.products_id=1431 or p.products_id=1432 or p.products_id=1433 or p.products_id=1434 or p.products_id=1435 or p.products_id=1445 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=1458 or p.products_id=1459 or p.products_id=1460 or p.products_id=1462 or p.products_id=1463 or p.products_id=1465 or p.products_id=1466 or p.products_id=1467 or p.products_id=1468 or p.products_id=1469 or p.products_id=1470 or p.products_id=1471 or p.products_id=1472 or p.products_id=1473 or p.products_id=1474 or p.products_id=1475 or p.products_id=1476 or p.products_id=1478 or p.products_id=1479 or p.products_id=1480 or p.products_id=1481 or p.products_id=1482 or p.products_id=1483 or p.products_id=1485 or p.products_id=1488 or p.products_id=1489 or p.products_id=1490 or p.products_id=1491 or p.products_id=1492 or p.products_id=1493 or p.products_id=1494 or p.products_id=1495 or p.products_id=1498 or p.products_id=1499 or p.products_id=1500 or p.products_id=1501 or p.products_id=1502 or p.products_id=1503 or p.products_id=1504 or p.products_id=1505 or p.products_id=1506 or p.products_id=1507 or p.products_id=1508 or p.products_id=1509 or p.products_id=1510 or p.products_id=1511 or p.products_id=1512 or p.products_id=1513 or p.products_id=1514 or p.products_id=1517 or p.products_id=1521 or p.products_id=1522 or p.products_id=1524 or p.products_id=1525 or p.products_id=1526 or p.products_id=1530 or p.products_id=1532 or p.products_id=1533 or p.products_id=1534 or p.products_id=1535 or p.products_id=1536 or p.products_id=1537 or p.products_id=1539 or p.products_id=1540 or p.products_id=1542 or p.products_id=1544 or p.products_id=1545 or p.products_id=1561 or p.products_id=1562 or p.products_id=1563 or p.products_id=1564 or p.products_id=1565 or p.products_id=1566 or p.products_id=1567 or p.products_id=1568 or p.products_id=1570 or p.products_id=1571 or p.products_id=1572 or p.products_id=1577 or p.products_id=1576 or p.products_id=1578 or p.products_id=1599 or p.products_id=1600 or p.products_id=1601 or p.products_id=1602 or p.products_id=1603 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=1616 or p.products_id=1617 or p.products_id=1618 or p.products_id=1619 or p.products_id=1620 or p.products_id=1621 or p.products_id=1622 or p.products_id=1623 or p.products_id=1624 or p.products_id=1625 or p.products_id=1626 or p.products_id=1627 or p.products_id=1628 or p.products_id=1629 or p.products_id=1630 or p.products_id=1631 or p.products_id=1632 or p.products_id=1633 or p.products_id=1634 or p.products_id=1635 or p.products_id=1636 or p.products_id=1639 or p.products_id=1640 or p.products_id=1643 or p.products_id=1644 or p.products_id=1645 or p.products_id=1646 or p.products_id=1647 or p.products_id=1653 or p.products_id=1654 or p.products_id=1656 or p.products_id=1657 or p.products_id=1658 or p.products_id=1659 or p.products_id=1660 or p.products_id=1661 or p.products_id=1662 or p.products_id=1663 or p.products_id=1664 or p.products_id=1665 or p.products_id=1666 or p.products_id=1667 or p.products_id=1668 or p.products_id=1669 or p.products_id=1670 or p.products_id=1671 or p.products_id=1672 or p.products_id=1673 or p.products_id=1674 or p.products_id=1675 or p.products_id=1676 or p.products_id=1677 or p.products_id=1678 or p.products_id=1698 or p.products_id=1697 or p.products_id=1696 or p.products_id=1702 or p.products_id=1703 or p.products_id=1704 or p.products_id=1725 or p.products_id=1726 or p.products_id=1727 or p.products_id=1728 or p.products_id=1729 or p.products_id=1730 or p.products_id=1731 or p.products_id=1732 or p.products_id=1733 or p.products_id=1734 or p.products_id=1735 or p.products_id=1736 or p.products_id=1738 or p.products_id=1739 or p.products_id=1740 or p.products_id=1741 or p.products_id=1742 or p.products_id=1743 or p.products_id=1744 or p.products_id=1745 or p.products_id=1746 or p.products_id=1747) 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 = '985c9hgdm37sreel2k62qa1ic2'

[TEP STOP]