udpated query exception to PDOException