Unknown column 'pick' in 'where clause'