public function unlockTables() { $this->cWrite->query('UNLOCK TABLES;'); self::$lockAliases = array(); if ($this->cWrite->error) { echo $this->cWrite->error; } }