$sql = "Select e.*, ifnull((select 1 from ue where ID_E = e.ID and ID_U = '{$id_del_usuario}' limit 1),0) existefrom empresas e";