QUERY PLAN
Sort (cost=6.39..6.40 rows=1 width=43)
Sort Key: created_at DESC
-> Group (cost=6.38..6.38 rows=1 width=43)
Group Key: id
-> Sort (cost=6.38..6.38 rows=1 width=43)
Sort Key: id
-> Seq Scan on tbl_task_groups s (cost=0.00..6.37 rows=1 width=43)
Filter: ((project_id = 4187) AND (client_id = 982))