help match the SQL query
SELECT user_id FROM wp_bp_xprofile_data WHERE (field_id=1 and value=23) and (field_id=2 and value=3) I have to do it so that I pass through both field_id and sift out all with the union, I tried it, it displays it all at once, but I need to work according to the type and so that it goes like this if the first field_id = 1 and value = 23 then it goes further and checks those users who already have field_id = 2 and value = 3