Forum Moderators: bakedjake
SELECT Products.ProductID, Products.ProductDescription, Products.ProductDescription, Categories.Category, Products.ProductRestrictions FROM (Products LEFT JOIN relCustomerProducts ON Products.ProductID = relCustomerProducts.ProductID) LEFT JOIN (Categories LEFT JOIN relCustomerCategories ON Categories.CategoryID = relCustomerCategories.CategoryID) ON Products.ProductCategory = Categories.CategoryID WHERE (((Products.ProductRestrictions)=0)) OR (((Products.ProductRestrictions)=1) AND ((relCustomerProducts.CustomerID)='01158')) OR (((Products.ProductRestrictions)=1) AND ((relCustomerCategories.CustomerID)='01158')) LIMIT 1,10
When a ORDER BY is added it kicks out the same result for all the items (but the proper number of items). When the ORDER BY is removed, it works fine, vending just the data i need. Any ideas?
monitor is giving me a headache,
evan