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

#   SQL error after order search?

##

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

Less More

- Posts: 611
- Thank you received: 13
-

12 years 6 months ago [\#155261](#155261) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[SQL error after order search?](/forum/35-orders-management/868046-sql-error-after-order-search#155261 "Hi, I was trying to do a search by order date in Hikashop business and now have an error so I cannot access any orders at all?  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 ') ORDER BY b.order&#95;id desc LIMIT 0, 100' at line 1 SQL=SELECT a.&#42;,b.&#42;,c.&#42; FROM jos&#95;hikashop&#95;order AS b LEFT JOIN jos&#95;hikashop&#95;user AS a ON b.order&#95;user&#95;id=a.user&#95;id LEFT JOIN jos&#95;users AS c ON a.user&#95;cms&#95;id=c.id WHERE (b.order&#95;type='sale') AND (b.order&#95;created &gt; ) ORDER BY b.order&#95;id desc LIMIT 0, 100")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

Hi, I was trying to do a search by order date in Hikashop business and now have an error so I cannot access any orders at all?

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 ') ORDER BY b.order_id desc LIMIT 0, 100' at line 1 SQL=SELECT a.*,b.*,c.* FROM jos_hikashop_order AS b LEFT JOIN jos_hikashop_user AS a ON b.order_user_id=a.user_id LEFT JOIN jos_users AS c ON a.user_cms_id=c.id WHERE (b.order_type='sale') AND (b.order_created &gt; ) ORDER BY b.order_id desc LIMIT 0, 100

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 6 months ago [\#155310](#155310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SQL error after order search?](/forum/35-orders-management/868046-sql-error-after-order-search#155310 "Hi, I was trying to do a search by order date in Hikashop business and now have an error so I cannot access any orders at all?  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 ') ORDER BY b.order&#95;id desc LIMIT 0, 100' at line 1 SQL=SELECT a.&#42;,b.&#42;,c.&#42; FROM jos&#95;hikashop&#95;order AS b LEFT JOIN jos&#95;hikashop&#95;user AS a ON b.order&#95;user&#95;id=a.user&#95;id LEFT JOIN jos&#95;users AS c ON a.user&#95;cms&#95;id=c.id WHERE (b.order&#95;type='sale') AND (b.order&#95;created &gt; ) ORDER BY b.order&#95;id desc LIMIT 0, 100")*

Hi,

I'm not able to reproduce the problem.

Replace the file administrator/components/com_hikashop/views/order/view.html.php with the one in this archive and that should avoid the problem.

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2ODA0Ni1zcWwtZXJyb3ItYWZ0ZXItb3JkZXItc2VhcmNoP3RtcGw9bWFya2Rvd24=) 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?

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

Time to create page: 0.059 seconds

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