Fixed bug with MySQL return value for unchanged rows