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=570 or p.products_id=197 or p.products_id=293 or p.products_id=832 or p.products_id=372 or p.products_id=373 or p.products_id=374 or p.products_id=557 or p.products_id=294 or p.products_id=836 or p.products_id=445 or p.products_id=706 or p.products_id=704 or p.products_id=711 or p.products_id=674 or p.products_id=551 or p.products_id=190 or p.products_id=423 or p.products_id=1132 or p.products_id=397 or p.products_id=1407 or p.products_id=291 or p.products_id=669 or p.products_id=180 or p.products_id=277 or p.products_id=338 or p.products_id=320 or p.products_id=403 or p.products_id=790 or p.products_id=399 or p.products_id=398 or p.products_id=400 or p.products_id=730 or p.products_id=502 or p.products_id=500 or p.products_id=835 or p.products_id=1125 or p.products_id=553 or p.products_id=552 or p.products_id=537 or p.products_id=1126 or p.products_id=727 or p.products_id=453 or p.products_id=149 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=151 or p.products_id=300 or p.products_id=301 or p.products_id=150 or p.products_id=148 or p.products_id=125 or p.products_id=131 or p.products_id=133 or p.products_id=134 or p.products_id=123 or p.products_id=447 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=484 or p.products_id=483 or p.products_id=486 or p.products_id=473 or p.products_id=472 or p.products_id=470 or p.products_id=471 or p.products_id=474 or p.products_id=482 or p.products_id=480 or p.products_id=481 or p.products_id=460 or p.products_id=749 or p.products_id=350 or p.products_id=285 or p.products_id=834 or p.products_id=280 or p.products_id=185 or p.products_id=341 or p.products_id=721 or p.products_id=166 or p.products_id=167 or p.products_id=1129 or p.products_id=295 or p.products_id=296 or p.products_id=433 or p.products_id=739 or p.products_id=259 or p.products_id=258 or p.products_id=708 or p.products_id=239 or p.products_id=842 or p.products_id=354 or p.products_id=352 or p.products_id=360 or p.products_id=541 or p.products_id=356 or p.products_id=218 or p.products_id=154 or p.products_id=317 or p.products_id=158 or p.products_id=155 or p.products_id=157 or p.products_id=870 or p.products_id=814 or p.products_id=454 or p.products_id=216 or p.products_id=221 or p.products_id=370 or p.products_id=371 or p.products_id=219 or p.products_id=228 or p.products_id=236 or p.products_id=244 or p.products_id=245 or p.products_id=260 or p.products_id=792 or p.products_id=171 or p.products_id=175 or p.products_id=176 or p.products_id=177 or p.products_id=179 or p.products_id=178 or p.products_id=192 or p.products_id=264 or p.products_id=265 or p.products_id=756 or p.products_id=266 or p.products_id=267 or p.products_id=390 or p.products_id=389 or p.products_id=386 or p.products_id=391 or p.products_id=751 or p.products_id=392 or p.products_id=393 or p.products_id=394 or p.products_id=395 or p.products_id=396 or p.products_id=387 or p.products_id=388 or p.products_id=385 or p.products_id=376 or p.products_id=379 or p.products_id=377 or p.products_id=624 or p.products_id=997 or p.products_id=405 or p.products_id=406 or p.products_id=414 or p.products_id=415 or p.products_id=416 or p.products_id=417 or p.products_id=412 or p.products_id=408 or p.products_id=418 or p.products_id=622 or p.products_id=623 or p.products_id=222 or p.products_id=230 or p.products_id=234 or p.products_id=737 or p.products_id=501 or p.products_id=515 or p.products_id=512 or p.products_id=519 or p.products_id=407 or p.products_id=508 or p.products_id=509 or p.products_id=510 or p.products_id=511 or p.products_id=506 or p.products_id=507 or p.products_id=520 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=726 or p.products_id=526 or p.products_id=525 or p.products_id=522 or p.products_id=534 or p.products_id=523 or p.products_id=530 or p.products_id=527 or p.products_id=532 or p.products_id=750 or p.products_id=516 or p.products_id=493 or p.products_id=535 or p.products_id=476 or p.products_id=475 or p.products_id=559 or p.products_id=336 or p.products_id=303 or p.products_id=1590 or p.products_id=927 or p.products_id=560 or p.products_id=576 or p.products_id=575 or p.products_id=574 or p.products_id=720 or p.products_id=578 or p.products_id=577 or p.products_id=748 or p.products_id=743 or p.products_id=625 or p.products_id=811 or p.products_id=813 or p.products_id=1127 or p.products_id=556 or p.products_id=518 or p.products_id=564 or p.products_id=566 or p.products_id=538 or p.products_id=540 or p.products_id=524 or p.products_id=579 or p.products_id=583 or p.products_id=586 or p.products_id=587 or p.products_id=584 or p.products_id=582 or p.products_id=740 or p.products_id=581 or p.products_id=589 or p.products_id=590 or p.products_id=591 or p.products_id=735 or p.products_id=558 or p.products_id=820 or p.products_id=819 or p.products_id=818 or p.products_id=513 or p.products_id=514 or p.products_id=441 or p.products_id=635 or p.products_id=636 or p.products_id=670 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=468 or p.products_id=746 or p.products_id=837 or p.products_id=663 or p.products_id=610 or p.products_id=678 or p.products_id=604 or p.products_id=858 or p.products_id=609 or p.products_id=603 or p.products_id=536 or p.products_id=429 or p.products_id=545 or p.products_id=831 or p.products_id=203 or p.products_id=812 or p.products_id=268 or p.products_id=561 or p.products_id=199 or p.products_id=539 or p.products_id=528 or p.products_id=671 or p.products_id=675 or p.products_id=679 or p.products_id=680 or p.products_id=700 or p.products_id=698 or p.products_id=699 or p.products_id=701 or p.products_id=702 or p.products_id=759 or p.products_id=760 or p.products_id=761 or p.products_id=764 or p.products_id=765 or p.products_id=767 or p.products_id=768 or p.products_id=769 or p.products_id=770 or p.products_id=773 or p.products_id=778 or p.products_id=781 or p.products_id=791 or p.products_id=794 or p.products_id=793 or p.products_id=796 or p.products_id=800 or p.products_id=805 or p.products_id=807 or p.products_id=838 or p.products_id=839 or p.products_id=840 or p.products_id=841 or p.products_id=843 or p.products_id=844 or p.products_id=845 or p.products_id=488 or p.products_id=846 or p.products_id=847 or p.products_id=848 or p.products_id=860 or p.products_id=861 or p.products_id=862 or p.products_id=864 or p.products_id=867 or p.products_id=868 or p.products_id=869 or p.products_id=871 or p.products_id=875 or p.products_id=877 or p.products_id=878 or p.products_id=879 or p.products_id=880 or p.products_id=882 or p.products_id=883 or p.products_id=887 or p.products_id=888 or p.products_id=1589 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=899 or p.products_id=900 or p.products_id=901 or p.products_id=1588 or p.products_id=1587 or p.products_id=903 or p.products_id=904 or p.products_id=1443 or p.products_id=907 or p.products_id=910 or p.products_id=911 or p.products_id=913 or p.products_id=914 or p.products_id=906 or p.products_id=1444 or p.products_id=1592 or p.products_id=918 or p.products_id=833 or p.products_id=921 or p.products_id=922 or p.products_id=923 or p.products_id=929 or p.products_id=931 or p.products_id=932 or p.products_id=933 or p.products_id=1297 or p.products_id=1296 or p.products_id=884 or p.products_id=938 or p.products_id=939 or p.products_id=940 or p.products_id=941 or p.products_id=944 or p.products_id=1441 or p.products_id=962 or p.products_id=948 or p.products_id=963 or p.products_id=961 or p.products_id=952 or p.products_id=954 or p.products_id=747 or p.products_id=955 or p.products_id=956 or p.products_id=957 or p.products_id=958 or p.products_id=1580 or p.products_id=1579 or p.products_id=930 or p.products_id=960 or p.products_id=964 or p.products_id=965 or p.products_id=968 or p.products_id=969 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=977 or p.products_id=978 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=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=998 or p.products_id=999 or p.products_id=1000 or p.products_id=1001 or p.products_id=1002 or p.products_id=1004 or p.products_id=1005 or p.products_id=1006 or p.products_id=1007 or p.products_id=1008 or p.products_id=1009 or p.products_id=1010 or p.products_id=1011 or p.products_id=1012 or p.products_id=1013 or p.products_id=1014 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=1024 or p.products_id=1025 or p.products_id=1026 or p.products_id=1027 or p.products_id=1028 or p.products_id=1029 or p.products_id=1030 or p.products_id=1031 or p.products_id=1032 or p.products_id=1033 or p.products_id=725 or p.products_id=1034 or p.products_id=1035 or p.products_id=1036 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=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=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=1075 or p.products_id=1076 or p.products_id=1078 or p.products_id=1079 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=1099 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=672 or p.products_id=753 or p.products_id=673 or p.products_id=426 or p.products_id=494 or p.products_id=487 or p.products_id=774 or p.products_id=676 or p.products_id=763 or p.products_id=716 or p.products_id=490 or p.products_id=492 or p.products_id=489 or p.products_id=1389 or p.products_id=806 or p.products_id=795 or p.products_id=375 or p.products_id=573 or p.products_id=1123 or p.products_id=425 or p.products_id=1124 or p.products_id=1130 or p.products_id=1131 or p.products_id=660 or p.products_id=457 or p.products_id=754 or p.products_id=755 or p.products_id=824 or p.products_id=772 or p.products_id=766 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=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=565 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=741 or p.products_id=744 or p.products_id=752 or p.products_id=1184 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=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=639 or p.products_id=742 or p.products_id=797 or p.products_id=885 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=775 or p.products_id=881 or p.products_id=777 or p.products_id=780 or p.products_id=801 or p.products_id=804 or p.products_id=595 or p.products_id=600 or p.products_id=619 or p.products_id=616 or p.products_id=617 or p.products_id=1242 or p.products_id=1243 or p.products_id=1244 or p.products_id=1245 or p.products_id=1246 or p.products_id=1247 or p.products_id=1248 or p.products_id=779 or p.products_id=776 or p.products_id=1719 or p.products_id=1718 or p.products_id=504 or p.products_id=1717 or p.products_id=1716 or p.products_id=1715 or p.products_id=1714 or p.products_id=866 or p.products_id=738 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=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=830 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=1328 or p.products_id=1329 or p.products_id=1330 or p.products_id=1331 or p.products_id=1342 or p.products_id=1343 or p.products_id=1346 or p.products_id=1349 or p.products_id=1350 or p.products_id=1351 or p.products_id=1355 or p.products_id=1356 or p.products_id=1357 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=1370 or p.products_id=1371 or p.products_id=1372 or p.products_id=1373 or p.products_id=1374 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=826 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=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=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=1456 or p.products_id=1457 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=1487 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=1496 or p.products_id=1497 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=1515 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=1529 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=1543 or p.products_id=1544 or p.products_id=1545 or p.products_id=1553 or p.products_id=1554 or p.products_id=1555 or p.products_id=1556 or p.products_id=1557 or p.products_id=1558 or p.products_id=1559 or p.products_id=1560 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=1569 or p.products_id=1570 or p.products_id=1571 or p.products_id=1572 or p.products_id=1578 or p.products_id=1581 or p.products_id=1577 or p.products_id=1576 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=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=1637 or p.products_id=1638 or p.products_id=1639 or p.products_id=1640 or p.products_id=1641 or p.products_id=1642 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=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=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=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=1702 or p.products_id=1703 or p.products_id=1704 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 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 = 'ob3nq52vcbb62222kii140csp2'

[TEP STOP]