SELECT TOP 1
 * 
FROM dbo.Objects_tbl 
where 
      Objects_tbl.='N'
 And  Objects_tbl.ObjectClass='DS'
 And  Objects_tbl.ObjectFromSiteID=''
 And Objects_tbl.ObjectOwningSiteID=''
 And Objects_tbl.ObjectUgMaster_Type = 'AP'
 And  Objects_tbl.ObjectUgMaster_CompCount<=6000
 ORDER BY Objects_tbl.ObjectUgMaster_APLevels ASC, 
 Objects_tbl.ObjectUgMaster_CompCount ASC, 
 Objects_tbl.ObjectLastModDate DESC