Fatal error: Uncaught Exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and chat_id = )' at line 2 query: select * from telegram_messages where id =
(select max(id) id from telegram_messages where from_id = and chat_id = ) in /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/Mysqlidb.php:1926
Stack trace:
#0 /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/Mysqlidb.php(1519): MysqliDb->_prepareQuery()
#1 /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/Mysqlidb.php(599): MysqliDb->_buildQuery(NULL)
#2 /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/index.php(41): MysqliDb->query('select * from t...')
#3 /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/index.php(151): on_scrap(NULL, NULL)
#4 {main}
thrown in /var/www/vhosts/webeasy.kz/scrapper.webeasy.kz/Mysqlidb.php on line 1926