Is this if condition redundant? Since in the select statement to generate this loop already checks on "WHERE L.language_code="$lang"