Table '.\wa5\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 (80901,80901,80901,80901,80901,80901)) OR (categoryID IN (1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1179,1194,1195,1196,1197,1193,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1198,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1217,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1231,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1254,1414,1411,1412,1413,1415,1399,1400,1406,1407,1405,1404,1403,1402,1401,1408,1398,1178)) ) AND ( enabled=1)