MySQL server has gone away
SELECT `iProduct` FROM `ss13_pl_products` AS `products` LEFT JOIN `ss13_pl_products_stats` USING( `iProduct` ) WHERE `iStatus` >= 1 AND EXISTS ( SELECT 1 FROM `ss13_pl_products_pages` AS `products_pages` WHERE `products`.`iProduct` = `products_pages`.`iProduct` AND `products_pages`.`iPage` IN ( '4', '72', '11', '138', '233', '15', '16', '1542', '956', '1544', '2130', '2020', '135', '1286', '1732', '880', '1545', '1731', '2292', '2368', '2106', '2362', '1976', '2430', '2302', '1474', '1977', '1543', '2268', '2183', '223', '989', '2087', '2372', '2433', '2034', '1255', '1553', '2006', '2190', '2040', '1319', '2194', '1966', '1340', '163', '109', '164', '102', '165', '97', '166', '101', '1337', '1934', '234', '2126', '2109', '2143', '953', '1655', '572', '1479', '105', '1238', '1899', '312', '1797', '1541', '175', '835', '1362', '1600', '731', '1712', '176', '1940', '177', '1534', '184', '169', '170', '1718', '2039', '178', '179', '111', '180', '2265', '171', '1664', '1775', '1935', '1674', '1599', '1663', '172', '100', '173', '2075', '2026', '174', '1417', '629', '929', '470', '1965', '1237', '936', '1022', '1861', '1643', '2146', '2319', '1684', '700', '1556', '657', '2027', '833', '1947', '980', '900', '554', '741', '1854', '1241', '2431', '481', '616', '1434', '2136', '1134', '2132', '2110', '2037', '834', '1021', '2316', '162', '593', '1000', '1373', '1478', '1937', '1939', '760', '1012', '1428', '2074', '739', '781', '1257', '1561', '1568', '1049', '1499', '971', '1239', '1761', '213', '1419', '2062', '1374', '2282', '1687', '1357', '1736', '327', '1923', '2206', '1281', '1945', '816', '2042', '504', '1855', '588', '1790', '300', '1023', '1685', '698', '2283', '1717', '658', '1719', '1157', '2011', '494', '573', '2028', '1470', '1938', '1833', '2135', '446', '999', '2063', '328', '1924', '1675', '1671', '2138', '817', '701', '1677', '2410', '2171', '2049', '1958', '967', '1060', '160', '555', '1800', '840', '2224', '2370', '761', '742', '2092', '1151', '901', '2043', '505', '1333', '856', '2311', '617', '1242', '1501', '740', '782', '214', '1830', '1258', '1269', '1365', '2222', '183', '1052', '1791', '1762', '1557', '1778', '1376', '1375', '2068', '2015', '482', '2208', '1420', '2360', '2320', '944', '1632', '1155', '1562', '1569', '2429', '2428', '1799', '1661', '301', '1606', '762', '1342', '2225', '912', '625', '2021', '215', '574', '2030', '1865', '2153', '784', '2420', '447', '1011', '2134', '1137', '1548', '1672', '2113', '1666', '2304', '1421', '1243', '744', '161', '618', '2228', '1662', '2044', '506', '1013', '1779', '1659', '224', '1727', '1334', '483', '858', '1429', '2144', '759', '1259', '1714', '2352', '1763', '1959', '2284', '2179', '964', '1644', '1377', '1267', '1300', '2078', '818', '1024', '1113', '556', '1563', '1573', '1389', '329', '1925', '415', '1001', '2301', '1224', '902', '1289', '836', '557', '837', '563', '905', '216', '575', '495', '353', '484', '1564', '1572', '1834', '1061', '2052', '2285', '819', '2270', '1673', '1025', '330', '2046', '1867', '167', '743', '1780', '2369', '763', '1857', '1240', '2047', '2356', '2355', '416', '619', '2185', '2411', '2079', '1720', '1495', '1764', '1502', '1631', '1261', '1715', '1961', '2031', '2181', '775', '1445', '2122', '1926', '1737', '1378', '2218', '1233', '1054', '302', '1971', '2170', '1422', '2427', '507', '1268', '2280', '1366', '1249', '2312', '2231', '893', '965', '2230', '1970', '1491', '1853', '2281', '2197', '1960', '2376', '2375', '2377', '1026', '2108', '2378', '2180', '2182', '2381', '2080', '2383', '217', '181', '2254', '2382', '2384', '2236', '1565', '1574', '2385', '347', '485', '2267', '2093', '1646', '2426', '2386', '2337', '2387', '820', '2303', '2388', '303', '2364', '1927', '810', '509', '2389', '496', '1558', '1014', '1120', '2391', '2390', '738', '2186', '1781', '558', '1765', '1423', '861', '2089', '620', '2392', '2394', '2393', '1682', '1138', '2398', '2154', '2395', '1002', '417', '2414', '789', '745', '1858', '1262', '2029', '2396', '1332', '1504', '1962', '1623', '2104', '1721', '1741', '2397', '1379', '2048', '1271', '2059', '910', '2399', '2361', '2400', '576', '2401', '811', '2402', '2404', '2403', '2432', '2405', '2406', '2322', '2321', '2407', '211', '2229', '331', '2408', '2379', '1549', '1492', '1364', '1638', '332', '2323', '305', '733', '2318', '2099', '790', '1968', '2297', '2296', '218', '1964', '1835', '621', '2313', '2423', '2094', '2286', '2255', '895', '486', '1676', '1589', '2036', '2365', '808', '2045', '2162', '187', '1782', '1297', '2041', '2226', '746', '2412', '862', '2184', '2105', '348', '2123', '418', '1580', '1859', '559', '849', '1263', '1270', '2133', '1766', '1969', '1722', '225', '1380', '1963', '2069', '928', '2324', '497', '577', '2081', '814', '2269', '1776', '1446', '821', '1928', '1493', '2213', '2212', '822', '2032', '1929', '963', '1848', '2155', '2232', '732', '1003', '2293', '911', '1027', '2366', '2300', '727', '1272', '321', '1783', '448', '1510', '306', '863', '2088', '2102', '419', '1475', '878', '1860', '349', '560', '81', '1264', '2129', '524', '809', '2101', '1767', '1284', '1716', '1739', '1139', '2077', '2307', '1381', '2072', '2066', '2287', '2008', '2070', '487', '219', '578', '791', '2260', '2261', '333', '1647', '1550', '846', '1015', '1119', '1274', '1768', '488', '2233', '823', '1836', '2314', '595', '307', '188', '2035', '2367', '695', '2288', '1516', '1581', '2033', '2156', '1361', '420', '356', '1629', '842', '1335', '947', '906', '1942', '1391', '2012', '1067', '1529', '1784', '1028', '1447', '1293', '728', '93', '561', '2098', '1585', '2124', '2241', '182', '334', '1930', '1382', '1622', '2215', '2214', '579', '231', '2139', '1831', '2439', '2128', '1481', '622', '1670', '1863', '1016', '696', '804', '1931', '1648', '562', '2163', '2211', '2210', '1360', '2371', '521', '1004', '1769', '1789', '1273', '489', '421', '1856', '355', '2114', '1630', '2095', '855', '1530', '1785', '308', '220', '1125', '923', '2289', '335', '1112', '1383', '2234', '1029', '2157', '2007', '580', '2239', '2073', '1723', '1611', '1302', '1551', '908', '1582', '1837', '492', '336', '1229', '1222', '903', '2198', '2151', '480', '2374', '1566', '1294', '2152', '1059', '1448', '860', '94', '499', '357', '2125', '422', '1030', '2191', '1941', '1522', '1111', '1505', '1786', '1756', '2118', '581', '1256', '2244', '1770', '977', '794', '1619', '729', '889', '2217', '2209', '2207', '1275', '2290', '2415', '1801', '1805', '1047', '1796', '1050', '2315', '1579', '2142', '2140', '2100', '337', '2117', '813', '1862', '1005', '1649', '1343', '1431', '2199', '1141', '1296', '2240', '2158', '1017', '423', '1933', '1729', '1276', '582', '2076', '1620', '1236', '2332', '1733', '2416', '354', '1742', '1538', '2237', '1031', '2064', '443', '350', '1838', '1344', '952', '2242', '1686', '1689', '1277', '730', '1435', '2200', '1449', '2159', '590', '704', '2317', '925', '1130', '1634', '498', '909', '1322', '1743', '1552', '2309', '1621', '1235', '2238', '2024', '1063', '1425', '1802', '1806', '877', '1795', '1321', '1527', '469', '1624', '2435', '359', '1503', '2201', '1587', '2299', '351', '1007', '1424', '1584', '1430', '594', '1650', '1771', '1744', '2054', '1952', '1142', '2438', '1285', '358', '340', '1531', '1278', '2202', '2038', '725', '1512', '360', '1064', '128', '1803', '1807', '1633', '1617', '1450', '2071', '1951', '425', '1745', '1773', '898', '1840', '926', '2203', '2274', '1019', '1651', '2243', '697', '981', '1810', '2308', '1245', '553', '1521', '1008', '2096', '341', '1301', '2164', '1506', '310', '904', '1051', '1336', '1774', '1787', '2160', '2050', '1746', '2216', '1950', '1320', '426', '508', '450', '2373', '414', '2305', '313', '1932', '710', '1246', '2204', '2166', '1518', '1511', '1808', '344', '907', '1747', '1788', '1451', '2083', '1953', '1839', '427', '793', '1804', '451', '982', '2422', '2245', '1118', '436', '316', '1625', '472', '1412', '2419', '1515', '2246', '2334', '2338', '1593', '2342', '1690', '2335', '2205', '1144', '1748', '345', '428', '1520', '1652', '1020', '2346', '2306', '1954', '452', '2131', '1841', '283', '442', '317', '2247', '2347', '795', '711', '1452', '430', '346', '748', '1523', '1370', '623', '1066', '699', '896', '592', '1749', '1955', '453', '1532', '2417', '343', '315', '1653', '2248', '290', '1641', '1750', '1372', '2161', '1154', '2418', '812', '1956', '2363', '1145', '282', '1539', '2349', '1058', '1751', '2065', '2115', '2127', '1298', '2421', '750', '1055', '2333', '2178', '1842', '1032', '796', '2120', '1507', '1367', '1225', '1384', '324', '1062', '2148', '2227', '278', '2219', '1957', '2437', '454', '1453', '890', '1388', '2053', '2167', '983', '1280', '2326', '1594', '1528', '295', '1654', '1570', '431', '2249', '1148', '288', '455', '2336', '955', '2149', '2273', '1752', '2253', '2116', '1626', '325', '1009', '503', '2168', '2327', '1454', '456', '1143', '984', '292', '753', '1669', '1753', '2339', '319', '1341', '449', '1590', '2250', '1627', '1065', '311', '1033', '1843', '432', '1973', '2169', '1772', '2328', '287', '318', '1754', '1794', '2251', '1592', '2340', '1234', '1010', '1477', '2172', '2329', '457', '798', '458', '1755', '2341', '1338', '433', '1849', '1153', '1460', '2173', '1777', '1695', '284', '2330', '235', '1642', '1656', '1250', '285', '571', '1792', '2252', '519', '1331', '1034', '843', '2174', '2331', '2256', '799', '1555', '2380', '1726', '2257', '461', '2271', '552', '1461', '289', '848', '2291', '2175', '715', '2413', '212', '1444', '293', '1864', '460', '841', '2176', '2258', '716', '1265', '1724', '1483', '1230', '1462', '279', '1847', '800', '462', '2259', '2112', '80', '286', '2262', '1150', '1304', '897', '463', '1131', '1252', '294', '717', '464', '988', '1226', '924', '1463', '1323', '1508', '1628', '1260', '1266', '2177', '1035', '1844', '1683', '2263', '2359', '1068', '1253', '1056', '768', '1227', '894', '2358', '1038', '1324', '832', '769', '589', '1845', '1464', '718', '2357', '1042', '466', '1363', '1612', '1039', '1546', '467', '1465', '719', '1040', '326', '1900', '2344', '1228', '1509', '493', '1041', '1560', '720', '1472', '1244', '1467', '2067', '2193', '2147', '1135', '1734', '1468', '1386', '1371', '1846', '1043', '1473', '2325', '1535', '721', '1044', '1045', '735', '1809', '2221', '771', '722', '770', '772', '656', '1567', '1455', '1046', '1117', '1658', '1668', '1678', '1482', '1832', '2354', '1456', '1645', '2145', '1469', '434', '1605', '1122', '1457', '510', '1596', '226', '1972', '1740', '471', '1123', '709', '773', '2264', '2295', '1458', '1738', '1547', '2436', '1248', '1635', '774', '2266', '724', '2097', '1946', '1128', '1459', '1484', '959', '776', '2107', '779', '2294', '2278', '777', '1498', '1496', '2196', '2345', '2348', '2350', '2010', '1688', '584', '1385', '2165', '1129', '2298', '1416', '2188', '2220', '1247', '2425', '2343', '1480', '1326', '2235', '1327', '1328', '1329', '2091', '2434', '2189', '1330', '1387', '2223', '1603', '1358', '2192', '1418', '299', '1414', '1006', '2276', '2277', '1709', '1494', '610', '586', '1426', '2351', '2150', '2018', '815', '987', '232', '1936', '473', '2424', '1949', '2353', '1345', '1500', '693', '1798', '2310', '780', '2440', '2441', '1126', '1610', '2275', '899', '2272', '1427', '1735', '867', '59', '58', '74', '57', '73', '70', '35', '62', '65', '17', '5', '6', '7', '8', '78', '77', '90', '91', '844', '845', '2', '1443', '9', '20', '22', '19', '32', '21', '18', '92', '1312', '1313', '1314', '1305', '1307', '1309', '1308', '1306', '1315', '1316', '1317', '1318', '1310', '1311' ) LIMIT 1 ) GROUP BY `iProduct` ORDER BY SUM(`iElement`) DESC LIMIT 9