tdb_select fixed