QUERY PLAN
GroupAggregate (cost=407.39..407.69 rows=15 width=36)
Group Key: work_log_id
-> Sort (cost=407.39..407.42 rows=15 width=9)
Sort Key: work_log_id
-> Seq Scan on tbl_reimbursements (cost=0.00..407.09 rows=15 width=9)
Filter: ((status = ANY ('{0,1,2,3}'::integer[])) AND (work_log_id = ANY ('{39166,39164,39156,39151,39150,39147,39141,35218,33823,33822,33821,33820,33818}'::integer[])))