Change another check to use mysql_num_rows