error in query in cart