QUERY PLAN
Aggregate (cost=208.99..209.00 rows=1 width=32)
-> Sort (cost=208.82..208.85 rows=11 width=833)
Sort Key: p.bargain_date DESC
-> Seq Scan on tbl_projects p (cost=0.00..208.63 rows=11 width=833)
Filter: ((project_status = 1) AND (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[])))