MySQL NODE-RED table

What does your function node that is generating the query look like?

Please don't screenshot it. Copy the code and paste it here - making sure you've read this post How to share code or flow json about how to properly share code on this forum.