Unknown column 'public' in 'WHERE'