Dibify sql LIMIT close - Should fix #592