Changed 'type' to 'product' in query.
Use correct var names.