I am getting this error in system.log and I think is affecting website performance. I am not sure how to fix it. Would anyone help me fix the problem?

[2021-05-06 09:51:15] main.ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.search_tmp_6093bb27b463b7_50091618' doesn't exist, query was: SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `at_bestsellers`.`qty_ordered` AS `bestsellers`, `at_most_viewed`.`views_num` AS `most_viewed`, IFNULL(review_summary.reviews_count, 0) AS `reviews_count`, IFNULL(review_summary.rating_summary, 0) AS `rating_summary`, `stock_status_index`.`stock_status` AS `is_salable` FROM `catalog_product_entity` AS `e`
 INNER JOIN `catalog_category_product_index_store2` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=2 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=48
 INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '2' AND price_index.customer_group_id = 0
 LEFT JOIN `amasty_sorting_bestsellers` AS `at_bestsellers` ON (at_bestsellers.`product_id`=e.entity_id) AND (at_bestsellers.store_id = '2')
 LEFT JOIN `amasty_sorting_most_viewed` AS `at_most_viewed` ON (at_most_viewed.`product_id`=e.entity_id) AND (at_most_viewed.store_id = '2')
 LEFT JOIN `review_entity_summary` AS `review_summary` ON e.entity_id = review_summary.entity_pk_value AND review_summary.store_id = 2 AND review_summary.entity_type = (SELECT `review_entity`.`entity_id` FROM `review_entity` WHERE (entity_code = 'product'))
 INNER JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id
 INNER JOIN `search_tmp_6093bb27b463b7_50091618` AS `search_result` ON e.entity_id = search_result.entity_id WHERE (e.entity_id IN((SELECT `cat`.`product_id` FROM `catalog_category_product_index_store2` AS `cat` WHERE (cat.category_id IN('69', '62', '68', '58', '54', '93', '52', '98', '56', '49', '99'))))) AND (stock_status_index.stock_status = 1) ORDER BY `e`.`created_at` DESC, `at_bestsellers`.`qty_ordered` DESC, `at_most_viewed`.`views_num` DESC, `e`.`entity_id` DESC
 LIMIT 12 [] []

Please suggest if anyone can help.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.