Fixed default value for $errno

Changed to null to avoid isError complications before executing the
query.