fixed typo in variable, causing the query to return no rows every time   #oeps