I believe, this should be called `$results` here. Also `$results` is never defined for this function.