Error:
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 id DESC' at line 1
Query:
SELECT * FROM ah_packages WHERE ('2017-10-23' < end_date) AND property_id = ORDER BY id DESC