"1064 - You have an error in your SQL syntax;" error after update J2.5.28 to J3.8.0 and 4.0 RC3.4.1 to V4.0.7