remove lastcard from query