Fix "only_full_group_by" issue (#2538)

This commit is contained in:
FrancescoUK
2019-10-06 18:43:58 +01:00
parent 3a06f55db9
commit 424eb4cf14

View File

@@ -292,6 +292,7 @@ class Item extends CI_Model
$this->db->join('attribute_links', 'attribute_links.item_id = items.item_id', 'left');
$this->db->join('attribute_values', 'attribute_links.attribute_id = attribute_values.attribute_id', 'left');
$this->db->where('items.item_id', $item_id);
$this->db->group_by('items.item_id');
$query = $this->db->get();