$sql= "select
tblservergroup.id,
tblservergroup.groupname,
if(tblservergroup.defserverpaid='0', '0', select concat(tblservers.ipaddress, ' (', tblservers.name, ')' ) as defaultserverpaiddesc from tblservers where tblservers.id=tblservergroup.defserverpaid),
if(tblservergroup.defserverfree='0', '0', select concat(tblservers.ipaddress, ' (', tblservers.name, ')' ) as defaultserverfreedesc from tblservers where tblservers.id=tblservergroup.defserverfree),
tblservergroup.note
from tblservergroup
";
This similar concept can be done in MSSQL, but when I write it in mysql, it shows error. Help.