That is easy: Something is going wrong in your network.
(If you need more help, you really have to provide more information. Like are they in the same subnet, what do you see on the DHCP server, what does a capture say, can the AP reach the DHCP server, etc.)