#17493  - incorrect use of mysql_affected_rows