Added a join query