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 'Севастополь'' OR cityname='*') AND c.advid = a.id AND a.mfo_regnum=''' at line 1