MySQL Error Occured
1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND xrwma IN (52)' at line 1

QUERY = SELECT productId, id_skroutz, name, available, description, image, dia, price, sale_price, useStockLevel, stock_level, digital, timestamp, tampelaki, available FROM CubeCart_inventory WHERE active='1' AND showNew='1' AND isNews='0' AND isPhotos='0' ORDER BY productId ASC, CubeCart_inventory.productId DESC AND xrwma IN (52)