title: Smarty show last 4 articles
body: <p>I use SMARTY and when I want to show the last 4 articles, it shows me 4 articles but not the last one (penultimate - second last). When I add one more article, then its show me the last one (but now not last one :D)</p>
  
  <p>This is the end of my SQL code from taking data from database:</p>
  
  <pre><code>FROM cms_article AS a 
  JOIN cms_detail_of_page AS d ON d.idOfDetailOfPage = a.idOfDetailOfPage 
  JOIN cms_page AS p ON p.idOfPage = d.idOfPage
  WHERE a.idOfLanguage = '" . $this-&gt;language . "' AND isArticleVisible = 1
  ORDER BY publicationDateOfArticle DESC, timestampOfArticle DESC 
  LIMIT 5"
  </code></pre>
  
  <p>This is my PHP Smarty code:</p>
  
  <pre><code>&lt;div class="items"&gt;
  {foreach $recentArticles as $article name=a}
      {if !$smarty.foreach.a.first}
      &lt;div class="col50"&gt;
          &lt;div class="item"&gt;
              &lt;a href="/{$language}/{$article.url}/"&gt; &lt;img src="uploads/photogallery/preserve.php?filename={$article.image}" alt="{$article.headline}" style="width:560px; height:300px;"&gt;
                  &lt;span class="date"&gt;{$article.timestamp|date_format:"%d/%m/%Y"}&lt;/span&gt;
                  &lt;span class="box"&gt;
                      &lt;span class="category"&gt;{$article.parent}&lt;/span&gt;
                      &lt;h3&gt;{$article.headline}&lt;/h3&gt;
                      &lt;p&gt;{$article.preview|truncate:100}&lt;/p&gt;
                  &lt;/span&gt;
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      {/if}
  {/foreach}
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I think problem is with this one: </p>
  
  <pre><code> {if !$smarty.foreach.a.first}
  </code></pre>
  
  <p>But when I delete the !, its show my only last article (not last 4 articles).</p>