Adding websites, subdomains and aliases is working ok, but getting stuff seems to be a different story. client_get_sites_by_user.php only returns rows with type vhost from web_domain table, but not types subdomain and alias. These two would do the trick, but the problem with these is that I have to know the ids for the rows that I'm trying to get (which client_get_sites_by_user.php doesn't return). sites_web_subdomain_get.php sites_web_aliasdomain_get.php So my question is, how can I get subdomains and aliases for specific domain?