select w.fullurl,* from features finner join sites son s.id=f.siteidinner join webs won w.id=f.webidwhere w.fullurl like 'sites/XX/YY%'
Compare the results to a master guids list I found at http://thorprojects.com/blog/archive/2007/05/16/652.aspx
This error is usually the result of a problem with Enterprise Features or custom features not matching up with features installed with the standard version of the product. The SQL statement above will list all the features in the site collection. Ultimately the problem is usually due to the fact that the Enterprise PID had been used on the source Server and the Standard PID had been used on the destination Server.