Optimization SQL

Join 3 selects in 1.

static public function getFieldValues($articleid, $fieldsids, $category
 = false)