My query is very similar to this.
(SELECT emailid FROM usereducation WHERE presfuncarea = '$funcarea')
intersect
(SELECT emailid FROM userprofession WHERE totexpyear >= '$minexp')
Since MySQL does not support intersect, I have to find the right solution.