QUERY PLAN
Limit (cost=1.76..1.77 rows=1 width=77)
-> Sort (cost=1.76..1.77 rows=1 width=77)
Sort Key: created_by DESC, created_at DESC
-> Group (cost=1.75..1.75 rows=1 width=77)
Group Key: id
-> Sort (cost=1.75..1.75 rows=1 width=77)
Sort Key: id
-> Seq Scan on tbl_task_files s (cost=0.00..1.74 rows=1 width=77)
Filter: (task_group_id = 189)