Rename $sql into $limitParts