public function get_row($query, $params) {
		$statement = $this->get_statement($query, $params);
		$statement->execute();

		$result = $statement->fetch_assoc();

		if (count($result) == 0) {
			return null;
		} else if (count($result) > 1) {
			throw new \Exception('Resultset has more than 1 row');
		}

		return $result[0];
	}
public function get_row($query, $params) {
		$statement = $this->get_statement($query, $params);
		$statement->execute();

		$result = $statement->fetch_assoc();

		if (count($result) == 0) {
			return null;
		} else if (count($result) > 1) {
			throw new \Exception('Resultset has more than 1 row');
		}

		return $result[0];
	}
public function get_row ( $ query , $ params ) { $ statement = $ this -> get_statement ( $ query , $ params ) ; $ statement -> execute ( ) ; $ result = $ statement -> fetch_assoc ( ) ; if ( count ( $ result ) == 0 ) { return null ; } else if ( count ( $ result ) > 1 ) { throw new \ Exception ( 'Resultset has more than 1 row' ) ; } return $ result [ 0 ] ; }
Get a single row from a resultset

@access public
@param string $query The query to execute
@param array $params Optional parameters to replace in the query
@return array $result The resulting associative array
@throws Exception Throws an Exception when there is more than one row in a resultset
Get a single row from a resultset