How would I get one id and not the other in the case of the following?
SELECT
posts.id,
posts.topic,
posts.content,
posts.date,
posts.author,
users.id,
users.name,
users.posts
When I get an id, it returns the user id, but I want the post id. How would I specify which one I want? I tried [“posts.id”] which apparently doesn’t work.
Use
ASto alias them: