syntax error: update table_gallery SET viewed=1 where id=