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 = 15' at line 1
select * from ***_enewsdlink where addtime >= 1745164801 and addtime <= 1745251199 and id = 709 and userid = and classid = 15