the error is caused the column name "size" in your table.
size is a javascript function name, so is causing errors.
to prevent this sort of issue from happening, the naming convention i like to use is to prepend the table to the column name.
for example, the table name is "Paintings", use that at the beginning of the column names:
paintingCateID
paintingTitle
paintingMedia
paintingSize
paintingPrice
paintingSold
paintingPhoto
paintingFramed
paintingSpecial
paintingDisplay
this way you will never run into a MySQL Reserved word, or javascript / PHP Function name in your table column naming.