title: How to get multi-language table data?
body: <p>I am using <code>opencart 2.3.0.2</code>. I am trying to get multiple language data from data table. But output result not showing <code>value</code> and <code>title</code> properly.</p>
  
  <p><code>productmark</code> Table</p>
  
  <pre><code>title  value  language_id  product_id
   1st    2nd       1           42
   3st    4nd       2           42
  </code></pre>
  
  <p><code>productmark</code> model</p>
  
  <pre><code>    public function getmarks($product_id) {
  
            $query = $this-&gt;db-&gt;query("SELECT * FROM " . DB_PREFIX . "productmark WHERE product_id = '" . (int)$product_id . "'");
            return $query-&gt;rows;
  
      }
  
     public function getmarksdata($product_id,$language_id) {
  
            $query = $this-&gt;db-&gt;query("SELECT * FROM " . DB_PREFIX . "productmark WHERE product_id = '" . (int)$product_id . "' AND language_id='".$language_id."'");
            return $query-&gt;rows;
  
      }
  </code></pre>
  
  <p><code>productmark</code> controller</p>
  
  <pre><code>if (isset($this-&gt;request-&gt;post['productmark'])) {
              $productmarks = $this-&gt;request-&gt;post['productmark'];
          } elseif (isset($this-&gt;request-&gt;get['product_id'])) {
              $productmarks = $this-&gt;model_productmark-&gt;getmarks($this-&gt;request-&gt;get['product_id']);
          } else {
              $productmarks = array();
          }
  
          $data['productmarks'] = array();        
  
          foreach ($productmarks as $key=&gt; $productmark) {   
                  foreach ($data['languages'] as $language){
  
                  $productmarks_data = $this-&gt;model_productmark-&gt;getmarksdata($this-&gt;request-&gt;get['product_id'],$language['language_id']);
  
                  $data['productmarks'][$key][$language['language_id']] = array(
                      'title' =&gt; $productmarks_data['title'],
                      'value' =&gt; $productmarks_data['value'],
  
                  ); 
  
              }
  
            }
  </code></pre>
  
  <p><code>productmark</code> template</p>
  
  <pre><code>&lt;?php $productmark_row = 0; ?&gt;
        &lt;?php foreach ($productmarks as $productmark) { ?&gt;
                &lt;?php foreach ($languages as $language) { ?&gt;
                         &lt;input type="text" name="productmark[&lt;?php echo $productmark_row; ?&gt;][&lt;?php echo $language['language_id']; ?&gt;][title]" value="&lt;?php echo $productmark[$language['language_id']]['title']; ?&gt;" placeholder="Title" class="form-control" /&gt;
                  &lt;?php }?&gt;
                  &lt;?php foreach ($languages as $language) { ?&gt;
                         &lt;input type="text" name="productmark[&lt;?php echo $productmark_row; ?&gt;][&lt;?php echo $language['language_id']; ?&gt;][value]" value="&lt;?php echo $productmark[$language['language_id']]['value']; ?&gt;" placeholder="Value" class="form-control" /&gt;
                   &lt;?php }?&gt;
   &lt;?php $productmark_row++; ?&gt;
  </code></pre>