Added primary key atSelectedTopics.avID because... well every table should have a primary key... and for where clause on query