Fix SQL error in Linux systems