PrestaShop/loyalty — pull request #4 by shaffe-fr (2014-08-27 10:39:26+00:00)
Title: Fix SQL syntax error

If $last equals true, there is a syntax error in the SQL query.