fix list all log SQL