protected function getPrefixedTableNames($tableNames)
    {
    	if ($this->db->options && $this->db->options->tableNamePrefix)
    	{
    		switch (true)
    		{
    			case is_string($tableNames):
    				$tableNames = $this->db->options->tableNamePrefix . $tableNames;
    			break;

    			case is_array($tableNames):
		    		foreach ($tableNames as $key => $table)
		    			$tableNames[$key] = $this->db->options->tableNamePrefix . $table;
		    	break;
    		}
    	}

    	return $tableNames;
    }