Index: temp/trunk/html/admin/products/product_class.php
===================================================================
--- temp/trunk/html/admin/products/product_class.php	(revision 2016)
+++ temp/trunk/html/admin/products/product_class.php	(revision 2017)
@@ -53,5 +53,4 @@
 	$where = "product_id = ? AND NOT(classcategory_id1 = 0 AND classcategory_id2 = 0) ";
 	$ret = $objQuery->count("dtb_products_class", $where, array($_POST['product_id']));
-	$objQuery->getlastquery(true);
 	
 	if($ret > 0) {
@@ -208,4 +207,6 @@
 	
 	$arrList =  $objQuery->getAll($sql, array($product_id, $product_id));
+		$objQuery->getlastquery(true);
+
 	
 	$objPage->arrForm["class_id1"] = $arrList[0]['class_id1'];
