fixed MySQL compatibility