Handle joins on the same table by using sqlalchemy alias

Very basic change. It did work for my needs.

I could get the following code to work:

r = bl.by(tbl_inventory_detail['isbn'],id=bl.max(tbl_inventory_detail['id']))
r = bl.join(r['id'],tbl_inventory_detail,'id','id')