fixed bug consearning aggregates, multiple joins and wildcard columns