Fix extrafield SQL request