Unknown column 'council' in 'where clause'