$results Undefined

Undefined variable: $results on line 180