fixxing MySQL statement