Error:
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 validity=' at line 4
Query:
SELECT curr,amount,
date_format(concat(year('2008-08-29'),'-',date_start),'%M %d') AS 'start_date',
date_format(concat(year('2008-08-29'),'-',date_end),'%M %d') AS 'end_date'
FROM org_surcharge WHERE amount<0 AND org_id= AND validity=