set transient for last sql entered