protected static function checkColumn($tableName, $columnName, $con=NULL)
    {
        $connection = self::checkConnection($con);

            $result = $connection->prepare("SELECT {$columnName} FROM {$tableName}");
            $result->execute();
            if (! $result->columnCount())
            {
                throw new ColumnNotExistExeption();
            }
            return $columnName;
    }
protected static function checkColumn($tableName, $columnName, $con=NULL)
    {
        $connection = self::checkConnection($con);

            $result = $connection->prepare("SELECT {$columnName} FROM {$tableName}");
            $result->execute();
            if (! $result->columnCount())
            {
                throw new ColumnNotExistExeption();
            }
            return $columnName;
    }
protected static function checkColumn ( $ tableName , $ columnName , $ con = NULL ) { $ connection = self :: checkConnection ( $ con ) ; $ result = $ connection -> prepare ( "SELECT {$columnName} FROM {$tableName}" ) ; $ result -> execute ( ) ; if ( ! $ result -> columnCount ( ) ) { throw new ColumnNotExistExeption ( ) ; } return $ columnName ; }
checkColumn Check if column exist in table

@param  $tableName
@param  $columnName
@param  $con

@return string
checkColumn Check if column exist in table