SELECT web_termek_torzs.TermekKod    FROM   
				`web_termek_torzs` 
				LEFT  OUTER JOIN web_keszlet as keszlet ON (keszlet.CegKod = web_termek_torzs.CegKod AND keszlet.TermekKod = web_termek_torzs.TermekKod AND keszlet.Raktar = 0),   
				`web_termek_szovegek`,
				`web_listaar`, `web_termek_kategoria`    WHERE   
				 web_termek_torzs.CegKod = "GNT" 
				 AND web_termek_szovegek.CegKod = "GNT" 
				 AND web_listaar.CegKod = "GNT"  
				 AND web_termek_kategoria.CegKod = "GNT" 
			  
				 AND LENGTH(web_termek_torzs.TermekKod) > 2
				 AND web_termek_torzs.TermekKod = web_termek_szovegek.TermekKod 
				 AND web_termek_torzs.TermekKod = web_listaar.TermekKod 
				 AND web_termek_torzs.TermekKod = web_termek_kategoria.TermekKod 
				 AND web_listaar.DevizaNem = "HUF"  
				 AND web_listaar.AlapAr > 0 
			  
				 AND web_termek_szovegek.Nyelv = "HUN" 
				 AND web_termek_torzs.Statusza IN ('N','R','U','V','Z') 
			  
				 AND (web_termek_torzs.seria_value = "" OR (web_termek_torzs.seria_value <> "" AND web_termek_torzs.seria_list_show = "1")) 
			   
				 AND web_termek_kategoria.Kod LIKE "MO%" 
			 AND (web_listaar.Eng_ar*((web_termek_torzs.Afa/100)+1)) >= "0"  AND (web_listaar.Eng_ar*((web_termek_torzs.Afa/100)+1)) <= "999999"    GROUP BY TermekKod  ORDER BY web_termek_torzs.TermekKod ASC   LIMIT  0,20  
34 darab termék