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='' AND a.act' at line 1