public function __construct($db, $sql, $shardID = 0) { try { parent::__construct($db, $sql); } catch (Exception $e) { Zotero_DB::error($e, $sql, array(), $shardID); } $this->link = $db; $this->sql = $sql; $this->shardID = $shardID; $this->isWriteQuery = Zotero_DB::isWriteQuery($sql); }