Unknown column 'entrada' in 'where clause'