Warning: pg_execute() [function.pg-execute]: Query failed: ERROR: неверный входной синтаксис для integer: "892|" in /home/web/sites/nccg/lib/DbSimple/Postgresql.php on line 179
SQL Error: ERROR: неверный входной синтаксис для integer: "892|" at /home/web/sites/nccg/lib/SiteFunctions/SiteFunctions.php line 418
Array
(
    [code] => 
    [message] => ERROR:  неверный входной синтаксис для integer: "892|"
    [query] => 
			select s.img as preview_img, s.*, sn.*, p.price_1 as price_num, p.is_text as price_is_text, p.text as price_text, p.currency_id, cur.name as currency_name, (select c.idcat from goodsview gw1 inner join catalog c on gw1.lkcatalogid=c.idcat and c.subcatalog=5 and gw1.lksortid=gw.lksortid) as firm_id
				from sort s 
					 inner join goodsview gw on s.id=gw.lksortid and gw.lkcatalogid=$1 
					inner join sortname sn on s.id=sn.lksortid and sn.lklanguageid=$2
					inner join price p on p.lksortid = gw.lksortid
					inner join currency cur on cur.id = p.currency_id
			where s.id=$3
    [context] => /home/web/sites/nccg/lib/SiteFunctions/SiteFunctions.php line 418
)