fix this sql query

This commit is contained in:
Christine Dodrill 2016-02-06 14:46:41 -08:00
parent f3e82b9a21
commit e4200b9568
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ routes:
if (@"kind").startsWith "hashtag-":
let channel = (@"kind").replace("hashtag-", "#")
rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=?, deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20)
rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=? and deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20)
title = channel & " page " & @"id"
else: