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 classid = 1' at line 1
select * from ***_enewsdlink where addtime >= 1743782401 and addtime <= 1743868799 and id = 673 and userid = and classid = 1