had mysql_real_escape_string in the wrong spot