1194 Table 'products' is marked as crashed and should be repaired
in:
[select count(p.products_id) as count from products p , products_to_categories p2c where p.products_status = 1 and p.products_id = p2c.products_id and p.parent_module='' and p.is_model = 1 and ( p2c.categories_id =1513 or p2c.categories_id =151301 or p2c.categories_id =151302 or p2c.categories_id =151304 or p2c.categories_id =151305 or p2c.categories_id =200001341 or p2c.categories_id =200001370 or p2c.categories_id =3305 or p2c.categories_id =330501 or p2c.categories_id =330503 or p2c.categories_id =330504 or p2c.categories_id =330505 or p2c.categories_id =330506 or p2c.categories_id =330507 or p2c.categories_id =100000620 or p2c.categories_id =200001328 or p2c.categories_id =3306 or p2c.categories_id =330609 or p2c.categories_id =16080702 or p2c.categories_id =200001244 or p2c.categories_id =200001245 or p2c.categories_id =200001250 or p2c.categories_id =200001251 or p2c.categories_id =200001252 or p2c.categories_id =200001253 or p2c.categories_id =200001254 or p2c.categories_id =200001255 or p2c.categories_id =200001376 or p2c.categories_id =200001256 or p2c.categories_id =200001257 or p2c.categories_id =200001259 or p2c.categories_id =200001260 or p2c.categories_id =200001261 or p2c.categories_id =200001262 or p2c.categories_id =200001263 or p2c.categories_id =200001264 or p2c.categories_id =200001265 or p2c.categories_id =200001268 or p2c.categories_id =200001269 or p2c.categories_id =200001271 or p2c.categories_id =200001272 or p2c.categories_id =200001273 or p2c.categories_id =200001276 or p2c.categories_id =200001277 or p2c.categories_id =200001278 or p2c.categories_id =200001279 or p2c.categories_id =200001372 or p2c.categories_id =200001249 or p2c.categories_id =200001373 or p2c.categories_id =660103 or p2c.categories_id =66010312 or p2c.categories_id =66010313 or p2c.categories_id =200001120 or p2c.categories_id =200001121 or p2c.categories_id =200001122 or p2c.categories_id =200001123 or p2c.categories_id =200003304 or p2c.categories_id =200001127 or p2c.categories_id =200001128 or p2c.categories_id =200001129 or p2c.categories_id =200001130 or p2c.categories_id =200001131 or p2c.categories_id =200001132 or p2c.categories_id =200001133 or p2c.categories_id =200003305 or p2c.categories_id =200003306 or p2c.categories_id =200001134 or p2c.categories_id =200001135 or p2c.categories_id =200001136 or p2c.categories_id =200001137 or p2c.categories_id =200001138 or p2c.categories_id =200001139 or p2c.categories_id =200003307 or p2c.categories_id =200003308 or p2c.categories_id =200001140 or p2c.categories_id =200001141 or p2c.categories_id =200001142 or p2c.categories_id =200001143 or p2c.categories_id =200001144 or p2c.categories_id =200001188 or p2c.categories_id =66010409 or p2c.categories_id =200001189 or p2c.categories_id =200001190 or p2c.categories_id =200001192 or p2c.categories_id =200001193 or p2c.categories_id =200001194 or p2c.categories_id =200001195 or p2c.categories_id =200001196 or p2c.categories_id =200001197 or p2c.categories_id =200001199 or p2c.categories_id =200001997 or p2c.categories_id =200003309 or p2c.categories_id =660199 or p2c.categories_id =660302 or p2c.categories_id =3314 or p2c.categories_id =660303 or p2c.categories_id =66010102 or p2c.categories_id =66030201 or p2c.categories_id =66030202 or p2c.categories_id =66030203 or p2c.categories_id =100000625 or p2c.categories_id =100000626 or p2c.categories_id =100004788 or p2c.categories_id =100000616 or p2c.categories_id =100000649 or p2c.categories_id =100000650 or p2c.categories_id =200001147 or p2c.categories_id =200001148 or p2c.categories_id =200001149 or p2c.categories_id =200001150 or p2c.categories_id =200001151 or p2c.categories_id =200001152 or p2c.categories_id =200001153 or p2c.categories_id =200001154 or p2c.categories_id =200001155 or p2c.categories_id =200001156 or p2c.categories_id =200001157 or p2c.categories_id =200001158 or p2c.categories_id =200001159 or p2c.categories_id =200001160 or p2c.categories_id =200001302 or p2c.categories_id =100000635 or p2c.categories_id =200001303 or p2c.categories_id =200001304 or p2c.categories_id =200001305 or p2c.categories_id =200001306 or p2c.categories_id =200001307 or p2c.categories_id =200001308 or p2c.categories_id =200001309 or p2c.categories_id =200001310 or p2c.categories_id =200001311 or p2c.categories_id =200001312 or p2c.categories_id =200001313 or p2c.categories_id =200001314 or p2c.categories_id =200001315 or p2c.categories_id =200001316 or p2c.categories_id =200001318 or p2c.categories_id =200001161 or p2c.categories_id =200001165 or p2c.categories_id =200002349 or p2c.categories_id =200002350 or p2c.categories_id =200002351 or p2c.categories_id =200002352 or p2c.categories_id =200002353 or p2c.categories_id =200002354 or p2c.categories_id =200001163 or p2c.categories_id =200001164 or p2c.categories_id =200001166 or p2c.categories_id =200002355 or p2c.categories_id =200001168 or p2c.categories_id =200001170 or p2c.categories_id =200001171 or p2c.categories_id =200001172 or p2c.categories_id =200001173 or p2c.categories_id =200001174 or p2c.categories_id =200001175 or p2c.categories_id =200001176 or p2c.categories_id =200001177 or p2c.categories_id =200001178 or p2c.categories_id =200001179 or p2c.categories_id =200001180 or p2c.categories_id =200001181 or p2c.categories_id =200001182 or p2c.categories_id =200001183 or p2c.categories_id =200001184 or p2c.categories_id =200001185 or p2c.categories_id =200001186 or p2c.categories_id =200001200 or p2c.categories_id =200001201 or p2c.categories_id =200001202 or p2c.categories_id =200001205 or p2c.categories_id =200001206 or p2c.categories_id =200001207 or p2c.categories_id =200001208 or p2c.categories_id =200001209 or p2c.categories_id =200001210 or p2c.categories_id =200001211 or p2c.categories_id =200001212 or p2c.categories_id =200001213 or p2c.categories_id =200001214 or p2c.categories_id =200001215 or p2c.categories_id =200001216 or p2c.categories_id =200001217 or p2c.categories_id =200001218 or p2c.categories_id =200001219 or p2c.categories_id =200003593 or p2c.categories_id =200003594 or p2c.categories_id =200001187 or p2c.categories_id =200001295 or p2c.categories_id =200001296 or p2c.categories_id =200001297 or p2c.categories_id =200001298 or p2c.categories_id =200001299 or p2c.categories_id =200001300 or p2c.categories_id =200001301 or p2c.categories_id =200001322 or p2c.categories_id =200003533 or p2c.categories_id =200001320 or p2c.categories_id =200003534 or p2c.categories_id =200001221 or p2c.categories_id =200001222 or p2c.categories_id =200001223 or p2c.categories_id =200001224 or p2c.categories_id =200001288 or p2c.categories_id =200001290 or p2c.categories_id =200001291 or p2c.categories_id =200001292 or p2c.categories_id =200001293 or p2c.categories_id =200001294 or p2c.categories_id =200001319 or p2c.categories_id =200001377 or p2c.categories_id =200001355 or p2c.categories_id =100000651 or p2c.categories_id =100000653 or p2c.categories_id =200001326 or p2c.categories_id =200001354 or p2c.categories_id =200001357 or p2c.categories_id =200001359 or p2c.categories_id =200001360 or p2c.categories_id =200001361 or p2c.categories_id =200001362 or p2c.categories_id =200001363 or p2c.categories_id =200001364 or p2c.categories_id =200001365 or p2c.categories_id =200001366 or p2c.categories_id =200001367 or p2c.categories_id =200001426 or p2c.categories_id =200001427 or p2c.categories_id =200001508 or p2c.categories_id =200001515 or p2c.categories_id =200001509 or p2c.categories_id =200001510 or p2c.categories_id =200001511 or p2c.categories_id =200001512 or p2c.categories_id =200001513 or p2c.categories_id =200001516 or p2c.categories_id =200001517 or p2c.categories_id =200001518 or p2c.categories_id =200001520 or p2c.categories_id =200001521 or p2c.categories_id =200001522 or p2c.categories_id =200001523 or p2c.categories_id =200001524 or p2c.categories_id =200001526 or p2c.categories_id =200001527 or p2c.categories_id =200001529 or p2c.categories_id =200003532 or p2c.categories_id =200003572 or p2c.categories_id =200001976 or p2c.categories_id =200001124 or p2c.categories_id =200001125 or p2c.categories_id =200001126 or p2c.categories_id =200001977 or p2c.categories_id =200001978 or p2c.categories_id =200001979 or p2c.categories_id =200001980 or p2c.categories_id =200001981 or p2c.categories_id =200001998 or p2c.categories_id =200001999)]