Bugfix when all keywords are removed

Prefix the primary key to avoid ambiguous column in the query