The Lynn IQ data isn't so much "flawed" as it is "fraudulent". There has never been a global comparative study of IQ; Lynn exploited the fact that IQ is a common diagnostic tool, even in places that don't fund a lot of social science research and thus don't conduct their own internal cross-sectional studies, and so ended up comparing diagnostic tests done at hospitals in the developing world with research studies done of volunteers in the developed world.