Declare $rows_affected to avoid strict notices

Added `var $rows_affected = false;` to all classes using that variable -- see 4243a9acb