I am running Ghost 5.39.0 at NameCheap and using Mailgun for email sends. I made a new post today and sent myself a test message that works just fine, shows up in Mailgun analytics, and my inbox.
When I publish (and send) all looks well for 20 minutes and then I get a message in my published list like so:
Then this when I click in:
When I try to view the analytics page for the post I get a 500 error page with a red error message at the top, the text of which is:
Internal server error, cannot read post. An unexpected error occurred, please try again. select
posts., (withkas (selectmember_idfrommembers_subscription_created_eventswhere posts.id = members_subscription_created_events.attribution_id union selectmember_idfrommembers_created_eventswhere posts.id = members_created_events.attribution_id) select count() fromk) ascount__conversions,posts., (select count(distinctmembers_click_events.member_id) frommembers_click_eventsinner joinredirectsonmembers_click_events.redirect_id=redirects.idwhere posts.id = redirects.post_id) ascount__clicks,posts., (select COALESCE(ROUND(AVG(score) * 100), 0) frommembers_feedbackwhere posts.id = members_feedback.post_id) ascount__sentiment,posts., (select count() frommembers_feedbackwhere posts.id = members_feedback.post_id AND members_feedback.score = 0) ascount__negative_feedback,posts.*, (select sum(score) frommembers_feedbackwhere posts.id = members_feedback.post_id) ascount__positive_feedbackfrompostswhere (posts.type= ‘post’ andposts.statusin (‘draft’, ‘published’, ‘scheduled’, ‘sent’)) andposts.id= ‘642084d362794e006c72f703’ limit 1 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘kas (selectmember_idfrommembers_subscription_created_eventswhere post’ at line 1
Related?
I found some old articles but they didn’t lead to answers.
Where can I start in looking to fix this? Any pointers appreciated.


