Items table query is working