Custom select Query issue
Hi,
I was trying to integrate a third party library related to order. I need to fetch previous order placed customer prior to current order. MySQL query is Code:
SELECT order_id FROM `xc_orders` WHERE orig_profile_id=7 AND is_order=1 AND order_id!=11 ORDER BY order_id DESC LIMIT 1 This is my code. Code:
$condition = array('orig_profile' => 7, 'is_order'=>1, 'order_id!='=>11); But I'm getting "Unrecognized field: is_order" error. How to fix this error. |
Re: Custom select Query issue
This is my new code and worked for me.
Code:
$lastOrderId = 0; |
All times are GMT -8. The time now is 03:47 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.