Fixed join on GetTablesNames query.