Unknown column 'num_oi' in 'where clause'