fixed: releated data query not right - missing groupby option and using wrong keyname