Sorry,
Im still not 100% on this, where it says my_var should this be the same throughout the query please?
Thanks