function initQuery($params)
 {
     $tables = Product_Images::getTables();
     $img_table = $tables['pi_images']['columns'];
     $product_id = $params['product_id'];
     $this->addSelectTable('pi_images');
     foreach ($img_table as $k => $v) {
         if ($k != 'alt_text') {
             $this->addSelectField($v);
         } else {
             $this->setMultiLangAlias('_alt', 'pi_images', $img_table['alt_text'], $img_table['image_id'], 'Product_Images');
             $this->addSelectField($this->getMultiLangAlias('_alt'), 'alt_text');
         }
     }
     $this->WhereValue($img_table['product_id'], DB_EQ, $product_id);
     $this->SelectOrder($img_table['sort_order'], 'ASC');
 }
 function uninstall()
 {
     $query = new DB_Table_Delete(Product_Images::getTables());
 }