One of our customers is running an old MySQL, 5.5 or 5.7. We have a very
long query 300+ lines which is too long to read, what it does
essentially gets orders that need to be renewed. We need to run it 24/7
and if renewal fails due to a lack of funds...