Fixed prune records

Missing wildcard in like query.