Updated GET_LAST_EXECUTION query for performance