I am wondering how to select one column twice using internal hosting in a different way. my database is sqlite and i am using the PDO db driver.
My example:
SELECT orders.id, orders.order_number, clients.first_name, clients.last_name, users.name AS user_name FROM orders INNER JOIN clients ON orders.client_id = clients.id INNER JOIN users ON orders.created_by = users.id
I want to also get the name of the user who edited this post
orders.edited_by = users.id
How to join this choice?
source share