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 =100005769 or p2c.categories_id =200001875 or p2c.categories_id =200001880 or p2c.categories_id =200001881 or p2c.categories_id =200001882 or p2c.categories_id =200001883 or p2c.categories_id =200001884 or p2c.categories_id =200000663 or p2c.categories_id =200000676 or p2c.categories_id =200000701 or p2c.categories_id =200000702 or p2c.categories_id =200000703 or p2c.categories_id =200000803 or p2c.categories_id =200000666 or p2c.categories_id =200000707 or p2c.categories_id =200000708 or p2c.categories_id =200000709 or p2c.categories_id =200000710 or p2c.categories_id =200000668 or p2c.categories_id =200001802 or p2c.categories_id =200001803 or p2c.categories_id =200001804 or p2c.categories_id =200001805 or p2c.categories_id =200001806 or p2c.categories_id =200000740 or p2c.categories_id =200000743 or p2c.categories_id =200000744 or p2c.categories_id =200000745 or p2c.categories_id =200000746 or p2c.categories_id =200001799 or p2c.categories_id =200001800 or p2c.categories_id =200001895 or p2c.categories_id =200002225 or p2c.categories_id =200003583 or p2c.categories_id =200003584 or p2c.categories_id =200003585 or p2c.categories_id =200001801 or p2c.categories_id =200001888 or p2c.categories_id =200001889 or p2c.categories_id =200001890 or p2c.categories_id =200001891 or p2c.categories_id =200001892)]