Unknown column 'publica' in 'where clause'