correct mytrainings query