FROM statya s
WHERE s.del = 0
AND s.raz_id = 1
AND s.langid = 1
AND s.st_date > 1234567890 AND s.st_date < 1234567890
ORDER BY s.st_date
LIMIT 1
FROM statya s
WHERE s.del = 0
AND s.raz_id = 1
AND s.langid = 1
s.st_date IS NOT NULL and s.st_date < 1234567890
ORDER BY s.st_date DESC
LIMIT 1