I’m really not sure exactly what you are doing. I’m not even sure what you mean by
loop through wp_postmeta and see if a post id in this table and the current user’s post id contain 4 fields with the same value.
Can you explain further or supply any code that you are attempting to use?