Recently I answered a question on Stack Overflow regarding a problem with a MySQL connection.
Initially it was very obvious that the question was about a problem with a connection, but after some helpful comments and my answer, the user edited the question according to our suggestion and presented a whole new problem regarding a MySQL query in the same code.
At this point my answer appeared to be completely off-topic, so I have flagged the question for moderators intervention. What else can I do in such scenarios?
Note: A similar question has been answered here but it didn't suggested actions against such questions.