SELECT count(m.mem_id) FROM members m,profiles p WHERE m.mem_id = p.mem_id AND m.verified=1 AND (m.fname!='' OR m.business_name !='') AND city=:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 4