Database Error Table 'spbbt.product_was' doesn't exist
SELECT product_was.*, product.id, product.typeId, product.brandId, product.imageId as image_id, product.imageId, product.sku, product.barcode, product.model, product.manufacturerProductURI, product.shortDescription, product.description, product.weight, product.visible, product.bestseller, product.action, product.price as fixedPrice, product.previousPrice, brand_language.id as brand_id, brand_language.name as brand_name, product_name.name, document_price_list_item.availabilityId, product_availability.name as availabilityName, product_availability.colorCode as availabilityColorCode, document_price_list_item.retailPrice as price, document_price_list_item.qty as qty FROM product LEFT JOIN document_price_list_item ON document_price_list_item.productId = product.id AND document_price_list_item.documentId = 27990 LEFT JOIN product_name ON product_name.id = product.id AND product_name.languageId = 1 LEFT JOIN product_was ON product_was.id = product.id LEFT JOIN brand_language ON brand_language.id = product.brandId AND brand_language.language_code = 'ru' LEFT JOIN company_product_status AS product_availability ON product_availability.id = document_price_list_item.availabilityId WHERE product.id = 502023