When did Ptolemy XII live and rule?

Well, I dont know when he ruled but I positive that he lived from 117-51 b.c.