I\'ve recently taken over an old project that was created 10 years ago. It uses MySQL 5.1.
Among other things, I need to change the default character set from latin1
I got it fixed by doing this before the query
SET SQL_MODE='ALLOW_INVALID_DATES';