Warning: pg_query(): Query failed: ОШИБКА: ошибка синтаксиса (примерное положение: "делл") LINE 1: ...here "tag" in ('кхл','хк сочи','хк локомотив','о\'делл эрик'... ^ in /html/sovsport.ru/system/core/etc/_db_postgres.php on line 50
error sql: select n."nid" id, n."timeStart", n."timeEnd" from ( select * from "dfa_node_access" where "timeCreate" > 1483218000 ) n inner join "dfa_tags_conn" t on t."nid"=n."nid" and n."enid"=2 and t."tid" in ( select "id" from "dfa_tags" where "tag" in ('кхл','хк сочи','хк локомотив','о\'делл эрик','козун брэндон','хк металлург магнитогорск')) where ((n."timeStart" is NULL) or (n."timeStart"<=1558558800)) and n."access" is not NULL and ((n."timeEnd" is NULL) or (n."timeEnd">=1558558800)) and n."enid"=2 and n."epid"=1 and n."pid" in (2) group by n."nid", n."timeStart", n."timeEnd" order by n."timeStart" desc limit 4