Error, query failedYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1SELECT DISTINCT l.* FROM tbl_listings l JOIN tbl_listing_applications la ON l.listing_id = la.listing_id WHERE l.equipment_type_id=