YOU SAID:
i had a friend over for diner
INTO JAPANESE
私はダイナーのために友人を持っていました
BACK INTO ENGLISH
i had a friend for diner
INTO JAPANESE
私はダイナーのための友人を持っていました
BACK INTO ENGLISH
i had a friend for diner
That didn't even make that much sense in English.