MySQL[1317]:Query execution was interrupted

SELECT s.`id`, s.`stock`, s.`in_stock`, s.`in_reserve` FROM `spr_tmc_in_stocks` s WHERE s.`id`=29457 AND s.`stock` IN (SELECT `id` FROM `spr_stocks` WHERE `retail`=1 AND `id` NOT IN (45, 46))