I am trying to run a query and get a result based on 2 dates. When using the query below I keep getting this error.
You have an error in your SQL syntax; check the manual that corresponds to the right syntax to use near 'BETWEEN '2017-12-10' AND '2017-12-30')' at line 1
Below is the query I am trying to use. I am not sure what I am doing wrong here.
Any help would be really appreciated!
SELECT * FROM checkout WHERE id = 10 AND (BETWEEN '2017-12-10' AND '2017-12-30')