getLastQuery Added