
---
"28.01.2026 11:37:49.585":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Оруджов Ильгар'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:49.824":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Диана Владимировна'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:50.064":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Оруджов Фарид'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:50.067":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Кристина Андреевна'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:50.072":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='noname'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:50.072":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Храмов Алексей'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:37:50.073":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT COUNT(DISTINCT id) as orders, SUM(totalsum) as sum, DATE_FORMAT(FROM_UNIXTIME(ordertime+3600),"%d-%m-%Y") as `day`
    FROM `mtf__orders`
    WHERE sale_call='Меммедов Сабухи'
    AND ordertime > UNIX_TIMESTAMP(DATE_SUB(CURDATE()), INTERVAL 7 day))-3600
    GROUP BY `day`
  log: |
    1064: 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 '), INTERVAL 7 day))-3600
    GROUP BY `day`' at line 4

---
"28.01.2026 11:38:14.011":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT  SQL_CALC_FOUND_ROWS
    COUNT( compid) as num, id, uid, compid, dateedit, comment, alarm_time, status
    FROM (
    SELECT id, uid, compid, dateedit, `comment`, alarm_time, `status`, `calls`
    FROM `mtf__crm_events`
    ORDER BY `dateedit` DESC
    ) as mynewtable
    WHERE `calls`="" and 1 AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewtable.compid
    
    ORDER BY mynewtable.dateedit desc
    LIMIT 0, 100
  log: |
    1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewt...' at line 8

---
"28.01.2026 11:38:14.015":
  uid: "21641"
  viz_id: "228096103"
  query: 'SELECT COUNT(DISTINCT compid) AS CountClients FROM `mtf__crm_events` WHERE 1 AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100'
  log: "1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100' at line 1"

---
"28.01.2026 11:38:19.901":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT  SQL_CALC_FOUND_ROWS
    COUNT( compid) as num, id, uid, compid, dateedit, comment, alarm_time, status
    FROM (
    SELECT id, uid, compid, dateedit, `comment`, alarm_time, `status`, `calls`
    FROM `mtf__crm_events`
    ORDER BY `dateedit` DESC
    ) as mynewtable
    WHERE `calls`="" and 1 AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewtable.compid
    
    ORDER BY mynewtable.dateedit desc
    LIMIT 0, 100
  log: |
    1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewt...' at line 8

---
"28.01.2026 11:38:19.904":
  uid: "21641"
  viz_id: "228096103"
  query: 'SELECT COUNT(DISTINCT compid) AS CountClients FROM `mtf__crm_events` WHERE 1 AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100'
  log: "1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100' at line 1"

---
"28.01.2026 11:38:28.214":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT  SQL_CALC_FOUND_ROWS
    COUNT( compid) as num, id, uid, compid, dateedit, comment, alarm_time, status
    FROM (
    SELECT id, uid, compid, dateedit, `comment`, alarm_time, `status`, `calls`
    FROM `mtf__crm_events`
    ORDER BY `dateedit` DESC
    ) as mynewtable
    WHERE `calls`="" and `uid`='10962' AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewtable.compid
    
    ORDER BY mynewtable.dateedit desc
    LIMIT 0, 100
  log: |
    1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400)
    GROUP BY mynewt...' at line 8

---
"28.01.2026 11:38:28.217":
  uid: "21641"
  viz_id: "228096103"
  query: "SELECT COUNT(DISTINCT compid) AS CountClients FROM `mtf__crm_events` WHERE `uid`='10962' AND compid IN () AND (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100"
  log: "1064: 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 (dateedit > 1768770000 AND dateedit < 1768856400) LIMIT 0, 100' at line 1"

---
"28.01.2026 11:38:36.053":
  uid: "21641"
  viz_id: "228096103"
  query: |
    SELECT  SQL_CALC_FOUND_ROWS
    COUNT( compid) as num, id, uid, compid, dateedit, comment, alarm_time, status
    FROM (
    SELECT id, uid, compid, dateedit, `comment`, alarm_time, `status`, `calls`
    FROM `mtf__crm_events`
    ORDER BY `dateedit` DESC
    ) as mynewtable
    WHERE `calls`="" and `uid`='10962' AND compid IN () AND (dateedit > 1767214800 AND dateedit < 1769634000)
    GROUP BY mynewtable.compid
    
    ORDER BY mynewtable.dateedit desc
    LIMIT 0, 100
  log: |
    1064: 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 (dateedit > 1767214800 AND dateedit < 1769634000)
    GROUP BY mynewt...' at line 8

---
"28.01.2026 11:38:36.056":
  uid: "21641"
  viz_id: "228096103"
  query: "SELECT COUNT(DISTINCT compid) AS CountClients FROM `mtf__crm_events` WHERE `uid`='10962' AND compid IN () AND (dateedit > 1767214800 AND dateedit < 1769634000) LIMIT 0, 100"
  log: "1064: 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 (dateedit > 1767214800 AND dateedit < 1769634000) LIMIT 0, 100' at line 1"
