[DB] avoid IN with undef