fixed mysql errors on tables with columns named limit.
fixed typo in variable name

error to errors