Table './adomasirieva_lt_etopas/SC_products' is marked as crashed and should be repaired
SELECT COUNT(DISTINCT p.productID) as cnt FROM SC_products p WHERE ( (p.productID IN (1709,669,719,722,723,758,883,967,1283,1367,1368,1371,1718,2590,720,2005,2152,2507,2793,2579,2442,2444,2165,2630,2591,913,1345,1981,2390,1121,1254,1271,1351,1366,1368,1369,1370,1371,1375,1542,1812,1816,1998,2049,2354,2356,2358,2590,2591,1280,2631,1271,1359,2628,2629,2036,2793,1345,1201,1202,1203,1207,2687,1349,1812,920,2575,2145,2197,2298,2560,2558,2576,2529,2530,2688)) OR (categoryID IN (604,606,607,608,609,610,603)) ) AND ( enabled=1)