Error in selecting a category : Unknown column 'hand' in 'where clause'