Minor: typoed variable name. Funny enough that it worked out given query