fixed mysql syntax