I am encountering a perplexing issue... I'm attempting to execute a query:
SELECT ordenes_servicio.idorden, estatus_orden.descripcion AS estatus, tipo_orden.descripcion AS tipo_orden, usuario.nombre, ordenes_servicio.nombres_cliente, ordenes_servicio.fecha_asig
FROM ordenes_servicio
INNER JOIN estatus_orden ON ordenes_servicio.idestatus_orden = estatus_orden.idestatus_orden
INNER JOIN tipo_orden ON ordenes_servicio.idtipo_orden = tipo_orden.idtipo_orden
INNER JOIN usuario ON ordenes_servicio.id = usuario.id
ORDER BY ordenes_servicio.idorden DESC
The issue arises when I attempt to execute it, displaying:
ER_BAD_FIELD_ERROR: Unknown column 'ordenes_servicio.idusuario' in 'on clause'
However, if you review the query, there is no instance of 'ordenes_servicio.idusuario'; even though there used to be, I have updated both tables, yet the query persists in trying to reference that column.
When executing the query on MySQL Workbench, it works, but not within my application... Can anyone provide assistance? :/
Note: My "app" actually functions as a REST API in typescript, utilizing the express library.