SQLSTATE[42S22]: Column not found: 1054 Unknown column 'viewed' in 'field list', query was: insert into rokanthemes_sorting_review_rate(product_id, store_id, viewed)
                        SELECT it.entity_pk_value, 9, sum(rating_summary) from review_entity_summary as it
                        where it.store_id = 9 and it.entity_type = 1
                        group by it.entity_pk_value