Incorrect key file for table '/tmp/#sql_710_1.MYI'; try to repair itSELECT p.productID as productID, name_ru, slug, thumbnail, Price as price, list_price as price_str
FROM SC_products p INNER JOIN SC_product_pictures pic ON p.productID=pic.productID
WHERE p.categoryID>1 AND p.list_price > 0 AND status_sale = 1
ORDER BY RAND()
LIMIT 5