no, that only checks the first domain, so for example if i have:
products_id | domain
5 | 0
5 | 3
it would take 0 for if(domain=3,3,domain)
i've tried this and it almost works, but it doesn't work as it should (it only displays the first one that has domain 0, then no...