Fixed bug in setting PDO fetch type