Invalid SQL: select count(*) 'count' from words where letter="A" and d_id=10 order by word