state $sql in method by_url for wiki model.