private function requireTable(QC $q) { if (!($tables = $q->getTables())) { throw new MysqlDBAdapterException('This query requires a table to be specified'); } return $tables; }