Самое простое что мне пришор в голову это 2 селекта services.id in (select services_id from table where speciality_field_id = 12 and value = 10) and services.id in (select services_id from table where speciality_field_id = 14 and value = 30)
Самое простое что мне пришор в голову это 2 селекта services.id in (select services_id from table where speciality_field_id = 12 and value = 10) and services.id in (select services_id from table where speciality_field_id = 14 and value = 30)
зачем?) select services_id from table where (speciality_field_id = 12 and value = 10) OR (speciality_field_id = 14 and value = 30)