static public function findByQuery($sqlQuery, array $params, $fetchMode = \PDO::FETCH_OBJ)
    {
        $model = new static;
        if($model->table) {
            $sqlQuery = str_replace(':table', $model->table, $sqlQuery);
        }

        $result = $model->execute($sqlQuery);
        return $result;
    }
static public function findByQuery($sqlQuery, array $params, $fetchMode = \PDO::FETCH_OBJ)
    {
        $model = new static;
        if($model->table) {
            $sqlQuery = str_replace(':table', $model->table, $sqlQuery);
        }

        $result = $model->execute($sqlQuery);
        return $result;
    }
static public function findByQuery ( $ sqlQuery , array $ params , $ fetchMode = \ PDO :: FETCH_OBJ ) { $ model = new static ; if ( $ model -> table ) { $ sqlQuery = str_replace ( ':table' , $ model -> table , $ sqlQuery ) ; } $ result = $ model -> execute ( $ sqlQuery ) ; return $ result ; }
Find by query
@param $sqlQuery
@param array $params
@param int $fetchMode
@return mixed
Find by query