I recently got the error message below on my site and am trying to figure out why
“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 ‘AND product_status=1 AND (1285119555 BETWEEN product_starting_date AND product_c’ at line 1”
Can anyone provide any potential reasons why this is occurring?
You didn’t say in your first post that it was working correctly previously.
Regarding sql injection - have you checked if your query is vulnerable to sql injection because I can’t tell if it is or isn’t without seeing the code that creates and runs the query.