QUERY PLAN
Limit (cost=16.16..16.16 rows=1 width=170)
-> Sort (cost=16.16..16.16 rows=1 width=170)
Sort Key: id DESC
-> Seq Scan on tbl_user_role_change_logs (cost=0.00..16.15 rows=1 width=170)
Filter: ((end_at IS NULL) AND (user_id = 5495) AND ((role_name)::text = 'Engineer'::text))