def self.sql_for_customized(values, custom_field_id, customized_type, customized_id_join_field)
        # code expects strings (e.g. for quoting), but ints would work as well: unify them here
        values = values.map(&:to_s)
        cv_table = CustomValue.table_name