1-- Find the notification preferences for an user 2select 3 np.notification_type, 4 np.enabled 5from public.user_notification_preference as np 6where np.user_id = $1;