How to fix 22014: invalid_argument_for_ntile_function in PostgreSQL | DevErrors