Fix incorrect mysql syntax