Come risolvo questo errore?

codice:
ident = request.querystring("ident")
categ = request.querystring("categ") 

sql = "SELECT TOP 1 * FROM images WHERE categoria = " & categ & " AND id > " & ident & " ORDER BY id ASC"
Sono entrambi numeri. I campi nel DB sono contatore (id) e testo (categoria).

Cosa c'è che non va?

Devo trasformare ident in numero o che?