MySQL Error Occurred

Error Message:
1317: Query execution was interrupted

SQL:
SELECT I.name, I.productId,I.weight, I.price,I.amz_price,I.amz_list_price, I.sale_price, I.productId, I.image , I.cat_id,I.disabled,I.prod_flag, I.main_deal, C.cat_name,C.cat_father_id FROM cubecart_inventory AS I, cubecart_category AS C WHERE C.cat_id = I.cat_id AND I.disabled = '0' AND I.prod_flag = '0' AND instock=1 AND I.no_follow=0 ORDER BY RAND() LIMIT 15