Error in query: 'SELECT * FROM wb_LastStockImport stock JOIN wb_StockImportAttributes attribute ON attribute.attributePartCode = stock.stockItemName JOIN wb_brands brand ON brand.brandName = attribute.attributeWheelBrand JOIN wb_MediaLibrary mediaLibrary ON mediaLibrary.mediaActive = 1 AND mediaLibrary.`mediaType` = 1 AND mediaLibrary.mediaBrand = attribute.attributeWheelBrand AND mediaLibrary.mediaModel = REPLACE(attribute.attributeWheelModel, \' (Special Offer)\', \'\') AND mediaLibrary.mediaColour = attribute.attributeWheelColour WHERE stock.stockImportId = (SELECT Value FROM wb_settings WHERE Name = \'ImportID\') AND stock.stockActivePartcode = 1 AND attribute.attributeActiveProduct = 1 AND attribute.attributeProductType = 1 AND (stockInStock + stockSupplierStockQty) >= 4 AND brandId = 129 AND (brandRestrictedCountryCodes IS NULL OR brandRestrictedCountryCodes NOT LIKE "%GB%") AND (REPLACE(mediaColour, " & ", " ") = "Bronze" OR REPLACE(attributeWheelColour, " & ", " ") = "Bronze") AND brandVisible = 1 AND (attributeWheelModel = "apollo" OR TRIM(REGEXP_REPLACE(REGEXP_REPLACE(attributeWheelModel, "[^A-Za-z0-9]+", " "), "\\\\s+", " ")) = "Apollo") GROUP BY attributeWheelBrand, attributeWheelModel, attributeWheelColour, attributeWheelSize ORDER BY stockSellPriceX4 ASC;'
array ( 0 => '42S22', 1 => 1054, 2 => 'Unknown column \'%GB%\' in \'where clause\'', )