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