[Skip to main content](#vessel-content)

#   Error on New Vendor - HikaMarket - Duplicate prd

##

- **[acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")**
- [![acayer@colegal.ca's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile") Topic Author
- [ Offline](/forum/user/36156-acayer-colegal-ca)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 8 months ago [\#192896](#192896) by [acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")  *[Error on New Vendor - HikaMarket - Duplicate prd](/forum/22-market-bug-report/875373-error-on-new-vendor-hikamarket-duplicate-prd#192896 "-- HikaShop version -- : 2.3.5 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3 -- Error-message(debug-mod must be tuned on) -- : An error has occurred. 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '13)' at line 1 SQL=SELECT pc.product&#95;id FROM hb5v2&#95;hikashop&#95;product&#95;category AS pc INNER JOIN hb5v2&#95;hikashop&#95;product AS p ON pc.product&#95;id = p.product&#95;id WHERE p.product&#95;vendor&#95;id = 0 AND pc.category&#95;id IN 13)  Hi Guys,  Just posted the error message. Apparently there is an error in the SQL.")* was created by *[acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")*

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.6.0
-- Joomla version -- : 3.3
-- Error-message(debug-mod must be tuned on) -- : An error has occurred.
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '13)' at line 1 SQL=SELECT pc.product_id FROM hb5v2_hikashop_product_category AS pc INNER JOIN hb5v2_hikashop_product AS p ON pc.product_id = p.product_id WHERE p.product_vendor_id = 0 AND pc.category_id IN 13)

Hi Guys,

Just posted the error message. Apparently there is an error in the SQL.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTM3My1lcnJvci1vbi1uZXctdmVuZG9yLWhpa2FtYXJrZXQtZHVwbGljYXRlLXByZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 8 months ago -  11 years 8 months ago [\#192922](#192922) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error on New Vendor - HikaMarket - Duplicate prd](/forum/22-market-bug-report/875373-error-on-new-vendor-hikamarket-duplicate-prd#192922 "-- HikaShop version -- : 2.3.5 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3 -- Error-message(debug-mod must be tuned on) -- : An error has occurred. 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '13)' at line 1 SQL=SELECT pc.product&#95;id FROM hb5v2&#95;hikashop&#95;product&#95;category AS pc INNER JOIN hb5v2&#95;hikashop&#95;product AS p ON pc.product&#95;id = p.product&#95;id WHERE p.product&#95;vendor&#95;id = 0 AND pc.category&#95;id IN 13)  Hi Guys,  Just posted the error message. Apparently there is an error in the SQL.")*

Hi,

Thanks for the report.
Please edit the file "plugins/hikamarket/duplicateproduct/duplicateproduct.php" and replace Code:

$query = 'SELECT pc.product_id FROM ' . hikamarket::table('shop.product_category') . ' AS pc '. ' INNER JOIN ' . hikamarket::table('shop.product') . ' AS p ON pc.product_id = p.product_id '. ' WHERE p.product_vendor_id = 0 AND pc.category_id IN '. implode(',', $categories_id).')';

By Code:

$query = 'SELECT pc.product_id FROM ' . hikamarket::table('shop.product_category') . ' AS pc '. ' INNER JOIN ' . hikamarket::table('shop.product') . ' AS p ON pc.product_id = p.product_id '. ' WHERE p.product_vendor_id = 0 AND pc.category_id IN ('. implode(',', $categories_id).')';

It will fix the SQL issue.
We will integrate this patch in the next release.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 11 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTM3My1lcnJvci1vbi1uZXctdmVuZG9yLWhpa2FtYXJrZXQtZHVwbGljYXRlLXByZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")**
- [![acayer@colegal.ca's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile") Topic Author
- [ Offline](/forum/user/36156-acayer-colegal-ca)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 8 months ago [\#193044](#193044) by [acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")  Replied by *[acayer@colegal.ca](/forum/user/36156-acayer-colegal-ca "View acayer@colegal.ca's Profile")* on topic *[Error on New Vendor - HikaMarket - Duplicate prd](/forum/22-market-bug-report/875373-error-on-new-vendor-hikamarket-duplicate-prd#193044 "-- HikaShop version -- : 2.3.5 -- HikaMarket version -- : 1.6.0 -- Joomla version -- : 3.3 -- Error-message(debug-mod must be tuned on) -- : An error has occurred. 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '13)' at line 1 SQL=SELECT pc.product&#95;id FROM hb5v2&#95;hikashop&#95;product&#95;category AS pc INNER JOIN hb5v2&#95;hikashop&#95;product AS p ON pc.product&#95;id = p.product&#95;id WHERE p.product&#95;vendor&#95;id = 0 AND pc.category&#95;id IN 13)  Hi Guys,  Just posted the error message. Apparently there is an error in the SQL.")*

Pas de problème, je vais faire pas mal de test prochainement, je vous ferai signe si je trouve autre chose

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3NTM3My1lcnJvci1vbi1uZXctdmVuZG9yLWhpa2FtYXJrZXQtZHVwbGljYXRlLXByZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
