Use the database "agnostic" query for this (see U4-3876)