Database error: Invalid SQL: select a.artkey, a.wsid, ifnull(cast(a.urlname as varchar(111) character set latin2), stripCZ(cn.ctx)) as urlname, cn.ctx as aname from articles a join websects w using (wsid) left join ctx cn on (a.artkey = cn.artkey and cn.type = 2 and cn.paraid = 0) where w.caninfos=1 and a.wsid <> 'pri' and a.actdate < now() and (a.deactdate is null or a.deactdate > now()) and (a.arttype in (10, 11) and (mag is null or (mag='xon' and pageno=9999))) and exists (select * from ctx c where a.artkey = c.artkey and c.type = 10) order by a.wsid, a.actdate
MySQL Error: 1064 (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 'varchar(111) character set latin2), stripCZ(cn.ctx)) as urlname, cn.ctx as aname' at line 1)
Session halted.