Fixed sql error in smf
Merge remote-tracking branch 'origin/jfusion2.0' into jfusion2.0