diff --git a/_include/include_diary.php b/_include/include_diary.php index 69db8d0..49a6f34 100644 --- a/_include/include_diary.php +++ b/_include/include_diary.php @@ -47,7 +47,7 @@ else { and date(tr_date) = uk_first_training ORDER BY tr_date ASC limit 1) - order by tr_id ASC + order by tr_date ASC limit 2) as elso_ket_edzes)) as 'training_per_month', (SELECT count(pr_id) @@ -83,7 +83,7 @@ else { and date(tr_date) = uk_first_training ORDER BY tr_date ASC limit 1) - order by tr_id ASC + order by tr_date ASC limit 2) elso2edzes) as 'first_two' FROM ((SELECT diff --git a/template/templates/user_diary.tpl b/template/templates/user_diary.tpl index 953d509..e1d7b6d 100644 --- a/template/templates/user_diary.tpl +++ b/template/templates/user_diary.tpl @@ -117,7 +117,7 @@