MySQL Error Occurred

Error Message:
1317: Query execution was interrupted

SQL:
SELECT I.name, I.image, I.productId FROM cubecart_inventory AS I, cubecart_category AS C WHERE I.cat_id = C.cat_id AND I.disabled != '1' AND C.hide = '0' AND (C.cat_desc != '##HIDDEN##' OR C.cat_desc IS NULL) AND I.cat_id > 0 ORDER BY RAND(1125) LIMIT 1