Changed table.name in table.tablename