QUERY PLAN
Sort (cost=9.94..9.95 rows=1 width=253)
Sort Key: a.user_id
-> Hash Join (cost=2.37..9.93 rows=1 width=253)
Hash Cond: ((b.name)::text = (a.item_name)::text)
-> Seq Scan on tbl_auth_items b (cost=0.00..7.49 rows=18 width=249)
Filter: (type = 1)
-> Hash (cost=2.16..2.16 rows=17 width=150)
-> Seq Scan on tbl_auth_assignments a (cost=0.00..2.16 rows=17 width=150)
Filter: (user_id = ANY ('{5384,5379,5374,5370,5450,5375,5373,5376,5424,5380,5369,5372,5371,5377,5383,5378,5382}'::integer[]))