Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8638421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:43:26+00:00 2026-06-12T10:43:26+00:00

I have a problem here thats really puzzling me. I have a MySQL query,

  • 0

I have a problem here thats really puzzling me. I have a MySQL query, that works fine.. for the most part. In the query, Im looking at dates and date ranges from a table, and returning results that are X days old from today. It looks like this:

    WHERE tickets.date_created > date_sub(now(), INTERVAL 30 DAY)

Under most conditions, the query works fine. However, if I change the interval to a number between 80 to 97 my script fails to execute. The error I get is:

    Error Code: 1366 Incorrect string value: '\xEF\x80\xA6Top...' for column 's' at row 3

Also, tryin 3 months, rather than 90 days doesnt work. There appear to be other numbers in the 100’s that dont work too, however, if I set something like 10000 days, all results return ok.

Is this something in my database? Is it my query? Has anyone seen this with a date interval? What am I doing wrong?

Any thoughts anyone has 🙂

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:43:27+00:00Added an answer on June 12, 2026 at 10:43 am

    I’ve found the answer!

    There is a function built into our MySQL to strip out HTML and other characters from a returned result. Whilst its not performing any action on the date area (or shouldn’t be) as its in my select statement:

       mycleanup (left(tickets_messages.message, 250))
    

    It appears that if I change this to simply

       left(tickets_messages.message, 250)
    

    My query then works! Very odd, but I guess Ill have to find another way to work around stripping HTML and the like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem here that requires to design a data structure that takes
Updated Problem solved, I have some design problem here. The directory looks like that:
my first question here! I have a problem with a piece of code that
So here is the problem: I have some logic in my application that will
Here's the core problem: I have a .NET application that is using COM interop
Here's my problem: I have an unmanaged dll that I made.I'm calling one of
Here is the problem: I have two columns in a table that, for each
Well, here is my problem: I have an application that uses a custom Javascript
So here is the problem that I am facing: I have an application that
I have an interesting SQL problem that I need help with. Here is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.