Fixed customized product duplication queries in Cart.php

- Fixed SQL queries and an incorrect variable at cart product duplication functions;
- Fixed customized cart product duplication queries, will no longer thrown an exception;
Added quote for column names, because column name index is reserved word