SELECT DISTINCT a.parent_id
FROM details AS a
JOIN details AS b ON a.parent_id=b.parent_id
WHERE a.data_key='Guitar' AND a.data_value='4' AND
b.data_key='Radio' AND b.data_value='2';
SELECT DISTINCT a.parent_id
FROM details AS a
JOIN details AS b ON a.parent_id=b.parent_id
WHERE a.data_key='Guitar' AND a.data_value='4' AND
b.data_key='Radio' AND b.data_value='2';