Unknown column 'control' in 'where clause'