Table './espressomachine/products' is marked as crashed and should be repaired(No Description) sql: SELECT COUNT(DISTINCT(p.id)) FROM products p, products_categories c WHERE p.id = c.product_id AND c.category_id IN (28) AND p.hidden = 0 AND p.enabled = 1 AND p.offers > 0 AND p.parent_id = 0 Fatal error: Call to a member function getSingleResult() on a non-object in /home/vhosts/sites/espressomachine.net/library/categories.php on line 159