My guess is your local environment has a different version of MySQL than your production environment...those types of errors tend to pop up when you upgrade to MySQL 5.7+
If you wanted to fix it immediately you could try turning strict to false in config/database.php
'connections' => [
'mysql' => [
'strict' => false,
]
]
Although, I think it'd be better to leave strict on and change your query.