Additional work solution to count, with subselect, for elimination of an arising mistake

Eliminates an error: "PDOException: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column..." when original_select contains columns called in selection by the same name ( e.g. TRIM(str_column) as str_column ).