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 'order by custom_member_wishlist.sequence,createdate desc' at line 4

select custom_products.* from custom_member_wishlist inner join custom_products on custom_products.sid = custom_member_wishlist.products_sid where custom_member_wishlist.member_sid= order by custom_member_wishlist.sequence,createdate desc

Filename: core/AC_Model.php

Line Number: 108