Index: temp/trunk/html/admin/products/product_class.php
===================================================================
--- temp/trunk/html/admin/products/product_class.php	(revision 4777)
+++ temp/trunk/html/admin/products/product_class.php	(revision 4778)
@@ -206,6 +206,4 @@
 	}
 	
-	$objQuery->getlastquery();
-	
 	$max = count($arrRet);
 	
Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 4766)
+++ temp/trunk/data/lib/slib.php	(revision 4778)
@@ -891,4 +891,6 @@
 		$arrRet[$key] = $val;
 	}
+	
+	$objQuery->getlastquery();
 	return $arrRet;
 }
