What SQL commands did you use?
And Frederick, thanks for the reply. But I think the issue is with W3TC because the code in the post is the problem, not the image itself. The full URL to the image isn’t being inserted into the post, just the URL of the CloudFront distribution. When I visit the full URL on CloudFront, it works. But there’s still a question mark in the post.
CelciusAnderson, what does your code look like in the post? Mine is just the CloudFront distribution (e.g. “http://cdn.example.com/”) and nothing else.