Unknown column 'private' in 'where clause'