#1392 Support for joining table more than once using alias and filter in add_component

... add_component

This is for ticket #1392.

This is also for GCI task, please review and accept: 
http://www.google-melange.com/gci/task/view/google/gci2012/8173207

Thanks