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 '_i_say_'willa'...let's_call_the_lawyers") or (url = "whole-site")) ORDER BY pr' at line 1
SQL Statement: SELECT distinct,location,code,type FROM web_ads JOIN web_ad_pages as p on join web_ad_dates as d on and d.start_date <= '2017-01-24' and d.end_date >= '2017-01-24' WHERE web_ads.magazine_id='9' and ((url = "/news/2011/09/29/you_say_'wella,"_i_say_'willa'...let's_call_the_lawyers") or (url = "whole-site")) ORDER BY priority desc