fix quote of sql command. thanks to PM5