I have been using IFNULL functions to convert NULL values to zeros in my SQL queries, like this:
SELECT IFNULL(mem.comment_count,0) FROM members...
Your query is good, but your code is probably looking for a column name? Try an alias:
SELECT IFNULL(mem.address2,'N/A') AS address2 FROM members mem ...