Recordset error when listing all fields in table in the SELECT statement?
When I use this:
<?php
$rsSANDBOXPRODUCTS = new WA_MySQLi_RS("rsSANDBOXPRODUCTS",$csdbmysqli,0);
$rsSANDBOXPRODUCTS->setQuery("SELECT * FROM Items_FromSandBoxFeed");
$rsSANDBOXPRODUCTS->execute();
?>
..the recordset works. When I use this:
<?php
$rsSANDBOXPRODUCTS = new WA_MySQLi_RS("rsSANDBOXPRODUCTS",$csdbmysqli,0);
$rsSANDBOXPRODUCTS->setQuery("SELECT ItemId, Title, ImageUrl, Category, CategoryId, BuyingOptions, SellerUsername, SellerFeedbackPercentage, SellerFeedbackScore, GTIN, Brand, MPN, EPID, ConditionId, Condition, PriceValue, PriceCurrency, PrimaryItemGroupId, PrimaryItemGroupType, ItemEndDate, SellerItemRevision, ItemLocationCountry, LocalizedAspects, SellerTrustLevel, Availability, ImageAlteringProhibited, EstimatedAvailableQuantity, AvailabilityThresholdType, AvailabilityThreshold, ReturnsAccepted, ReturnPeriodValue, ReturnPeriodUnit, RefundMethod, ReturnMethod, ReturnShippingCostPayer, RestockingFeePercentage, AcceptedPaymentMethods, DeliveryOptions, ShipToIncludedRegions, ShipToExcludedRegions, InferredEPID, InferredGTIN, InferredBrand, InferredMPN, InferredLocalizedAspects, AdditionalImageUrls, OriginalPriceValue, OriginalPriceCurrency, DiscountAmount, DiscountPercentage, EnergyEfficiencyClass FROM Items_FromSandBoxFeed");
$rsSANDBOXPRODUCTS->execute();
?>
...I get the following error:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Condition, PriceValue, PriceCurrency, PrimaryItemGroupId, PrimaryItemGroupType, ' at line 1"
Any idea why?
Thank you.
NJ