QUERY PLAN
Limit (cost=1.24..1.24 rows=1 width=282)
-> Group (cost=1.24..1.24 rows=1 width=282)
Group Key: dt.id
-> Sort (cost=1.24..1.24 rows=1 width=278)
Sort Key: dt.id DESC
-> Seq Scan on tbl_document_types dt (cost=0.00..1.23 rows=1 width=278)
Filter: (department_id = 3)