class backyard_mysqli extends mysqli by adding my_error_logging to ->query and new method ->queryArray . So it has same possibilities as the non-object way.