diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index 2066dca..d05a226 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -10,19 +10,20 @@ @@ -65,8 +66,8 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id LEFT JOIN comment_tallies ON eps.id = comment_tallies.eps_id - WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY eps.id + 0 DESC + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) + ORDER BY eps.id DESC LIMIT 10 ') %--> @@ -106,8 +107,8 @@ FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id - WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY eps.id + 0 DESC + WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) + ORDER BY eps.id DESC LIMIT 30 OFFSET 10 ') %-->