A Database Error Occurred

Error Number: 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 'and custom_order.order_status!=4 and custom_order.order_status!=7 order by cust' at line 1

select * from custom_order where member_sid = and custom_order.order_status!=4 and custom_order.order_status!=7 order by custom_order.createdate desc

Filename: core/AC_Model.php

Line Number: 108