I have this code to search for a matching result in a MYSQL database:
$where[] = 'p.id IN (
SELECT adcfvc.advert_id
FROM #__koparent_advert_specific_fields_values AS adcfvc
WHERE adcfvc.advert_id = p.id
AND adcfvc.field_name = ' . $db->Quote($sf_key) . '
AND ' . $db->Quote(JString::strtolower($sf_value)) . ' = adcfvc.field_value
)';
I want to change the above search query from using the "IN" operator to "INNER JOIN".
Knowing that I cannot change any of the database structure in anyway, just modify the above code.