QUERY PLAN
Nested Loop (cost=0.27..12.97 rows=1 width=250)
-> Seq Scan on tbl_auth_assignments a (cost=0.00..4.64 rows=1 width=11)
Filter: (user_id = 5388)
-> Index Scan using tbl_auth_items_pkey on tbl_auth_items b (cost=0.27..8.29 rows=1 width=250)
Index Cond: ((name)::text = (a.item_name)::text)
Filter: (type = 2)