protected function fetchByColumn($column, $value)
    {
        /**
         * @var \Slab\Database\Providers\BaseResponse $response
         */
        $response = $this->driver->query("select " . $this->getMappingAsSQL() . " from " . $this->getTable() . " where `" . $column . "` = ? limit 1;", array($value), static::DATA_OBJECT_CLASS);

        return $response->row();
    }
protected function fetchByColumn($column, $value)
    {
        /**
         * @var \Slab\Database\Providers\BaseResponse $response
         */
        $response = $this->driver->query("select " . $this->getMappingAsSQL() . " from " . $this->getTable() . " where `" . $column . "` = ? limit 1;", array($value), static::DATA_OBJECT_CLASS);

        return $response->row();
    }
protected function fetchByColumn ( $ column , $ value ) { /**
         * @var \Slab\Database\Providers\BaseResponse $response
         */ $ response = $ this -> driver -> query ( "select " . $ this -> getMappingAsSQL ( ) . " from " . $ this -> getTable ( ) . " where `" . $ column . "` = ? limit 1;" , array ( $ value ) , static :: DATA_OBJECT_CLASS ) ; return $ response -> row ( ) ; }
Do actual mysql query by specific criteria

@param string $column
@param string $value
@return NULL|mixed
Do actual mysql query by specific criteria