public static function findColumns (array $columns, int $limit=0, string $order="DESC")
	{
		$order 	   	= static::validateOrder($order);
        $dbObject  	= Database::getInstance();
		$columns 	= joinArray($dbObject->escapeValues($columns), ', ');
		return static::limitFindBySql("SELECT {$columns} FROM ".static::$tableName." ORDER BY id {$order}", $limit);
	}
public static function findColumns (array $columns, int $limit=0, string $order="DESC")
	{
		$order 	   	= static::validateOrder($order);
        $dbObject  	= Database::getInstance();
		$columns 	= joinArray($dbObject->escapeValues($columns), ', ');
		return static::limitFindBySql("SELECT {$columns} FROM ".static::$tableName." ORDER BY id {$order}", $limit);
	}
public static function findColumns ( array $ columns , int $ limit = 0 , string $ order = "DESC" ) { $ order = static :: validateOrder ( $ order ) ; $ dbObject = Database :: getInstance ( ) ; $ columns = joinArray ( $ dbObject -> escapeValues ( $ columns ) , ', ' ) ; return static :: limitFindBySql ( "SELECT {$columns} FROM " . static :: $ tableName . " ORDER BY id {$order}" , $ limit ) ; }
Find by columns from the database
@param string $columns
@param int $limit
@param string $order
@return mixed
Find by columns from the database