Fix bug in PDOAdapter where query not throwing Exception