Unknown column 'reduce' in 'where clause'