With this sql select I'm getting behavior I didn't expect:
SELECT *
FROM ISSUE i
LEFT JOIN REMOTEID r
ON i.id = r.issue_id
AND r.service_name = 'AskYourPdf'
WHERE r.issue_id IS NULL
AND i.publication_id = 1
LIMIT 1
I would expect id to be populated. When I modify the sql this way, it works:
SELECT *, i.id
FROM ISSUE i
LEFT JOIN REMOTEID r
ON i.id = r.issue_id
AND r.service_name = 'AskYourPdf'
WHERE r.issue_id IS NULL
AND i.publication_id = 1
LIMIT 1
With this sql select I'm getting behavior I didn't expect:
Output is:
I would expect id to be populated. When I modify the sql this way, it works:
Output is:
Is this expected behavior? When I run the first query through MySQL directly rather than through RedBean it works as I expect.