A Database Error Occurred

Error Number: 1146

Table 'orion20_ru.product_restrict' doesn't exist

SELECT SQL_CALC_FOUND_ROWS p.*, '' AS my_picture, category.category_name, prices_product.*, cat_pr.*, top_cat_pr.cat_margin as top_cat_margin, prices_group.group_margin, prices_vendor.vendor_margin, fc.FCRRP, fc.FCClose, IFNULL(fp.FPValue,0) AS FPValue, mp1.PmProductValue, mp1.PmProductWeight, dp.DPDeliveryDate , IF(LENGTH (pi.PImgSrc) >1 ,pi.PImgSrc, p.picture) as picture, p.dealer_id as dealer_id, prices_product.prod_margin as prod_margin FROM products p LEFT JOIN product_restrict AS prest ON (prest.product=p.id AND prest.partner=98819) LEFT JOIN ProductsImages pi on (pi.PIProductsCode = p.id AND pi.PIMain=1) LEFT JOIN ForbiddenClient fc ON p.vendor = fc.FCBrendId AND fc.FCPartnerId = 98819 LEFT JOIN ForbiddenPositions fp ON p.article = fp.FPProductCode AND fp.FPPartnerCode = 98819 LEFT JOIN MultiplicityProducts mp1 ON p.article = mp1.PmProductCode LEFT JOIN DeliveryProducts dp ON dp.DPProductId = p.article LEFT JOIN category ON p.topCategoryId = category.id LEFT JOIN RetailAssortment AS ra ON (p.id=RAProductCode AND ra.RAClientCode=98819) LEFT JOIN prices_product ON p.id = prices_product.product_id and prices_product.dealer_id = 388 LEFT JOIN prices_category cat_pr ON p.categoryId = cat_pr.category_id and cat_pr.dealer_id = 388 LEFT JOIN prices_category top_cat_pr ON p.topCategoryId = top_cat_pr.category_id and top_cat_pr.dealer_id = 388 LEFT JOIN prices_group ON p.group_id = prices_group.group_id and prices_group.dealer_id = 388 LEFT JOIN prices_vendor ON (p.vendor_name = prices_vendor.vendor and prices_vendor.dealer_id = 388 and p.categoryId = prices_vendor.category_id) WHERE prest.product IS NULL AND (p.is_new =1 ) AND (p.Available < 3) AND p.price > 0 AND p.dealer_id IN (0,388) AND prices_group.group_id is not NULL AND cat_pr.category_id is not NULL AND top_cat_pr.category_id is not NULL AND pi.PImgPath IS NOT NULL AND ( prices_product.is_hidden =0 or prices_product.is_hidden is NULL ) ORDER BY p.article DESC limit 12

Filename: models/Mproduct.php

Line Number: 105