
				SELECT DISTINCT
					B.*
					,B.XML_ID as EXTERNAL_ID
					,DATE_FORMAT(B.TIMESTAMP_X, '%d.%m.%Y %H:%i:%s') as TIMESTAMP_X
					,L.DIR as LANG_DIR
					,L.SERVER_NAME
				FROM
					b_iblock B
					INNER JOIN b_lang L ON L.LID=B.LID
				WHERE 1 = 1
					
					 AND  ((((B.ACTIVE='Y'))))  AND  ((((B.ID = '5')))) 
			