But if you wish to get results should take into account() which will actually return all rows where slug is like $slug, it will not just return one results like getvar.
But if you wish to use get_results() which will actually return all rows where slug is like $slug, it will not just return one result like getvar.