Table 'reliv.temp_image' doesn't exist DELETE FROM `temp_image` WHERE `image_date` < ADDDATE(NOW(), INTERVAL -15 MINUTE);