Likes module: SQLite compatibility

Quick fix for an error reported by a user. Discussion [here](http://chyrp.net/discuss/topic/sqlite-database-error-in-the-like-and-categorize-modules/).