[PHP]Use member variables instead of global variables (last_request_stmt_type and last_request_affected_rows)