INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '268' OR p.categoryid1 = '268' OR p.categoryid2 = '268' OR p.categoryid3 = '268') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '267' OR p.categoryid1 = '267' OR p.categoryid2 = '267' OR p.categoryid3 = '267') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '248' OR p.categoryid1 = '248' OR p.categoryid2 = '248' OR p.categoryid3 = '248') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '260' OR p.categoryid1 = '260' OR p.categoryid2 = '260' OR p.categoryid3 = '260') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '250' OR p.categoryid1 = '250' OR p.categoryid2 = '250' OR p.categoryid3 = '250') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '249' OR p.categoryid1 = '249' OR p.categoryid2 = '249' OR p.categoryid3 = '249') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '252' OR p.categoryid1 = '252' OR p.categoryid2 = '252' OR p.categoryid3 = '252') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '253' OR p.categoryid1 = '253' OR p.categoryid2 = '253' OR p.categoryid3 = '253') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '255' OR p.categoryid1 = '255' OR p.categoryid2 = '255' OR p.categoryid3 = '255') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '264' OR p.categoryid1 = '264' OR p.categoryid2 = '264' OR p.categoryid3 = '264') ORDER BY orderby ASC LIMIT -1 INVALID SQL: 1064 : 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 '-1' at line 1 SQL QUERY FAILURE: SELECT DISTINCT(p.productid), p.descr, p.product FROM xcart_products AS p, xcart_categories AS c WHERE p.forsale = 'Y' AND (c.membership = '' OR c.membership ='') AND (c.categoryid = p.categoryid OR c.categoryid = p.categoryid1 OR c.categoryid = p.categoryid2 OR c.categoryid = p.categoryid3) AND (p.categoryid = '257' OR p.categoryid1 = '257' OR p.categoryid2 = '257' OR p.categoryid3 = '257') ORDER BY orderby ASC LIMIT -1