Unknown column 'entidad' in 'where clause'