: MySQL 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 '' at line 1
SQL: select ads.adv_name, url from advertiser_product_urls apu inner join advertiser_to_schools ads on apu.school_name = ads.school_name and apu.adv_name = ads.adv_name WHERE ads.enabled='Y' and apu.productid=