Hello,
I have 2 queries that I want to combine to 1.
SELECT DISTINCT object_id
FROM field_data
WHERE data = 4
AND field_id = 4
Output: 36, 40, 41, 44
SELECT DISTINCT object_id
FROM field_data
WHERE data = 2
AND field_id = 5
Output: 38, 40, 44
I want to make 1 query with matching output, that would be in this case: 40, 44
But how? Normally I would use INTERSECT but MySQL doesn't support this.
Please help..?
Thanks.
aj