public static function where($column, $relation, $value)
    {
        $self = self::instance();
        $key = $self->_keyName;
        $data = \Query::from($self->_table)->select($key)->where($column, $relation, $value)->get();
        $rows = [];

        if (!is_null($data)) {
            foreach ($data as $item) {
                $rows[] = self::instance($item->$key);
            }
        }

        return $rows;
    }
public static function where($column, $relation, $value)
    {
        $self = self::instance();
        $key = $self->_keyName;
        $data = \Query::from($self->_table)->select($key)->where($column, $relation, $value)->get();
        $rows = [];

        if (!is_null($data)) {
            foreach ($data as $item) {
                $rows[] = self::instance($item->$key);
            }
        }

        return $rows;
    }
public static function where ( $ column , $ relation , $ value ) { $ self = self :: instance ( ) ; $ key = $ self -> _keyName ; $ data = \ Query :: from ( $ self -> _table ) -> select ( $ key ) -> where ( $ column , $ relation , $ value ) -> get ( ) ; $ rows = [ ] ; if ( ! is_null ( $ data ) ) { foreach ( $ data as $ item ) { $ rows [ ] = self :: instance ( $ item -> $ key ) ; } } return $ rows ; }
get data by where clause.

@param string $column
@param string $relation
@param string $value

@return array
get data by where clause .