def sql_in_for_flag(flag, colmn)
      val = flag_mapping[colmn][flag]
      flag_value_range_for_column(colmn).select { |bits| bits & val == val }
    end
def sql_in_for_flag(flag, colmn)
      val = flag_mapping[colmn][flag]
      flag_value_range_for_column(colmn).select { |bits| bits & val == val }
    end
returns an array of integers suitable for a SQL IN statement.