replace AND DATE(projectcreatedon) =CURRENT_DATE AND DATEPART() <....? med:
AND projectcreatedon > (now() - INTERVAL 10 SECOND)
replace AND DATE(projectcreatedon) =CURRENT_DATE AND DATEPART() <....? med:
AND projectcreatedon > (now() - INTERVAL 10 SECOND)