Did you delete just the source or did you delete source + database. Error above makes me believe that you only deleted the source.
The error above also makes me believe that did not fully migrate mautic instance from one of the previous versions.
Try to follow this guide to resolve migration issues: MySQL error upgrading to 4.2 - #6 by mzagmajster