sandhi contraction (kaṃ + ettha)
Analysis. kaṃ (accusative of ko, interrogative pronoun "who") + ettha (locative adverb "here, in this place") = "who in this place", used interrogatively or indefinitely to ask or denote which person is present or involved.
Etymology. ko derives from Indo-European *kwo- (interrogative base), cognate with English "who", Latin "quī", Greek "tís"; ettha is a locative form built on the deictic root *e- ("this") with locative suffix -ttha, related to Sanskrit "iha" and English "here".
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version