Query error: Unknown column 'Array' in 'where clause'