QUERY PLAN
Limit (cost=5.75..5.76 rows=1 width=52)
-> Sort (cost=5.75..5.76 rows=1 width=52)
Sort Key: created_at DESC
-> Group (cost=5.73..5.74 rows=1 width=52)
Group Key: id
-> Sort (cost=5.73..5.74 rows=1 width=52)
Sort Key: id
-> Seq Scan on tbl_supplier_documents cd (cost=0.00..5.72 rows=1 width=52)
Filter: (supplier_id = 431)