SELECT COUNT(id) as cnt FROM sri_blogposts WHERE blog='143' AND date>='2024-06-01' AND date<='2024-06-31' AND user='145' AND active=1 AND allowed=1 AND static=0
Incorrect DATE value: '2024-06-31'