SQL statement does not work to make a ticket, help

0

It does not work mark me this error:

  

1054 - The column 'customers.customer' in field list is unknown

Select rentas.idrenta, clientes.idcliente, clientes.nombre as 'Nombre del cliente', autos.marcamodelo 
from rentas inner join detalle_renta on rentas.idrenta = detalle_renta.idrenta 
inner join autos on detalle_renta.idauto = autos.idauto
inner join usuarios on rentas.idusuario = usuarios.idusuario 
where rentas.idrenta = '1' 
group by rentas.idrenta,'Nombre del cliente', marcamodelo
    
asked by Cesar Reyna 15.11.2018 в 17:19
source

1 answer

1

It seems that you still have to add the clients table to your query since that's why you do not recognize the clients.client field

inner join  clientes on clientes.idcliente=rentas.idcliente
    
answered by 15.11.2018 / 17:24
source