public function cb_doc_price_bypricecat($price_cat_id) { $sql = "SELECT id, data->>'doc' as name FROM " . $this->TB_PRICES . " WHERE data->>'cat_id' = '" . $price_cat_id . "'"; return parent::combobox($sql); }