total products bought now works using where.not syntax in sql query