Fixing an issue with MysqlQueryBuilder getCountQuery() as well as resolving ambiguous column name issue when a related aliased table name accidently takes the same name as the original FROM table column name. Resolving it by auto-aliasing with rel_