MYSQL loop through year columns and stop at first not found
This is absolutely a bad practice, I know, but it's an abandoned project from a previous developer and I need to keep using the same structure. Basically, there's a table which has to be edited every year by adding a…