- optimized sql findLatest of Job object