Hi oxoyoz,
first of all AP510 is able to serve more than IP subnet as DHCP server.
If VLAN 2 is not working at all, most probably the Unmanaged Switch configuration is wrong.
Please post or send the config.
Furthermore, please send or post your AP510 config too.