- $r = q("SELECT `nurl` FROM `contact` WHERE SUBSTRING_INDEX(`contact`.`nurl`,'/',3) = '%s'
- AND `contact`.`uid` = %d AND `contact`.`self` = 0 AND `network` = '%s' ",
+ $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s'
+ and contact.uid = %d and contact.self = 0 and network = '%s' ",