error in query 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 'INNER JOIN demo on demo.webid=apps.id and (listing_expire_date>='2017-09-25' a' at line 1