Sql should be without any reference to customers_basket_attributes table.

More...