how to get single item in join query
I have a query below that gets the items associated with a list.
But let's say that
But let's say that
list_items has a 1 to 1 relationship with lists. how can I modify the query to get a single item from the list_items table? The code above works, but it will return an array of list items when i want it to just be the object because it is a 1 to 1 relationship.