The where clause you have uses only AND, which means that the parentheses aren't needed. I.e. your where clause is identical to this one
cfent_id='502' AND ufe_txt='Male' AND cfent_id='522' AND ufe_txt='Yes'
If I were to guess, you want to retrieve a user id that has both of these
One record of cfent_id=502 and ufe_txt='Male'
One record of cfent_ud=522 and ufe_text='Yes'
And as far as I can tell, that means you have two alternatives. One is joining on a subquery
SELECT uid
FROM table
INNER JOIN (
SELECT uid
FROM table
WHERE cfent_id=522 AND ufe_txt='Yes') as t
ON table.uid = t.uid
WHERE cfent_id=502 AND ufe_txt='Male'
And the other is using group by and having
SELECT u_id, COUNT(*) AS uid_count
FROM user_form_entries
WHERE (cfent_id='502' AND ufe_txt='Male' ) OR
(cfent_id='522' AND ufe_txt='Yes' )
GROUP BY u_id
HAVING uid_count > 1