Added support for inverse relationships
Fixes on select_a_row