I keep getting this error when posting an image, please help
Invalid SQL:
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize, description
FROM attachment
WHERE postid IN (-1,122,123,133,137,138)
ORDER BY dateline
mysql error: Unknown column 'thumbnail_filesize' in 'field list'
mysql error number: 1054
|