Akito one of your columns is storing data as a double (similar to float) but is getting a string as value. I assume you're not using prepared statements etc so you will have to look at how you are executing the query.
PS this question does not relate to flarum.