Workaround for MySQL error 1170