From 1510e02887c302578d9f5bd8012d7cd60cb3164c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Mon, 9 Aug 2010 08:33:05 +0000
Subject: [PATCH] Bug fix from user, merged from HEAD.

---
 modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm
index 63578d3c4c..4413551e9d 100644
--- a/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/TranslationAdaptor.pm
@@ -117,7 +117,8 @@ sub fetch_all_alternative_by_Transcript {
       . "FROM translation tl "
       . "LEFT JOIN translation_stable_id tlsi "
       . "ON (tlsi.translation_id = tl.translation_id) "
-      . "JOIN transcript t USING (transcript_id) "
+      . "JOIN transcript t "
+      . "ON (t.transcript_id = tl.translation_id) "
       . "WHERE tl.transcript_id = ? "
       . "AND tl.translation_id != t.canonical_translation_id",
     $lsi_created_date, $lsi_modified_date );
-- 
GitLab