MySQL fails after an hour or so

Quick update to my test doing a SELECT query every 15-mins to see if MySQL connection remains active.

My Telegram bot has been working fine for over 38 hours doing dB queries when requested by a user.

I did try longer intervals (e.g. 30-mins and 45-mins) but settled on 15-mins for no real reason.