MySQL Error!

Date: [22:27:17] 28.03.2024 +0300

MySQL:
Query:                 select * from ds_stories as g where status=1 and (UNIX_TIMESTAMP(date)> or (UNIX_TIMESTAMP(date)>= and id<)) order by UNIX_TIMESTAMP(date) asc, id asc limit 3
mysql_error():         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 'or (UNIX_TIMESTAMP(date)>= and id<)) order by UNIX_TIMESTAMP(date) asc, id asc l' at line 1
mysql_errno():         1064
mysql_server_info():   8.0.31-0ubuntu0.20.04.2

Script:
SCRIPT_FILELINE:       /var/www/www-root/data/www/lachance.ru/modules/stories.inc.php:86
SCRIPT_FILENAME:       /var/www/www-root/data/www/lachance.ru/index.php

Request:
REQUEST_URI:           /stories/ekaterina
QUERY_STRING:          module=stories&id=ekaterina
HTTP_REFERER:          
HTTP_HOST:             www.lachance.ru
REQUEST_METHOD:        GET

Server:
SERVER_SOFTWARE:       Apache/2.4.41 (Ubuntu)
SERVER_PORT:           80
SERVER_NAME:           www.lachance.ru

User:
HTTP_USER_AGENT:       claudebot
REMOTE_ADDR:           54.163.14.144
REMOTE_PORT:           40268