It seems like you had fetch_mode but forgot to use it. Correct me if I'm wrong, but this fixed my problems of me wanting to use FETCH_ASSOC