SELECT fk_ProdSupplier,CompanyDefaultImageFolder,ProdImage,ProdURL,ProdTitle,CompanyName,ProdSize,ProdQuan,ProdBrand,ProdPriceR,ProdOGCatID,fk_OrderGuideID,ProdID,CompanyID FROM Products LEFT JOIN OrderGuideItems on Products.ProdID = OG_fk_ProductID AND ProdPublished = 1 AND OG_fk_UserID = ?
LEFT JOIN Company on fk_CompanyID = CompanyID
WHERE ProdTitle REGEXP '' AND ProdPublished = 1 OR ProdTitleNew REGEXP '' AND ProdPublished = '1' GROUP BY ProdID
Got error 'empty (sub)expression' from regexp