SELECT count(lot_id) AS lot_id FROM lot WHERE id_product IN (SELECT product_id FROM product WHERE is_published = 1 AND product_id = 92) AND type = plitka

Unknown column 'plitka' in 'where clause'
/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(123:63)
sql/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(123:63)
jBody/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(202:10)
try/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(194:2)
_measure/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(123:28)
jSql/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(235:33)
jSql/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(320:56)
jBody/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(59:26)
setServerEnviroment/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(58:23)
connect/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(56:10)
try/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(55:2)
server/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(320:48)
if/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(320:10)
_execute/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(235:23)
switch/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(230:2)
_sql/home/virtwww/w_pechnoi-ru_ff8f6368/http/Sql/Sql.p(123:7)
table/home/virtwww/w_pechnoi-ru_ff8f6368/http/class/birja.p(69:37)
select_parent/home/virtwww/w_pechnoi-ru_ff8f6368/http/class/birja.p(63:10)
if/home/virtwww/w_pechnoi-ru_ff8f6368/http/class/birja.p(48:18)
lot_product/home/virtwww/w_pechnoi-ru_ff8f6368/http/catalog/index.html(27:9)
if/home/virtwww/w_pechnoi-ru_ff8f6368/http/catalog/index.html(26:3)
body_main/home/virtwww/w_pechnoi-ru_ff8f6368/http/auto.p(174:18)
body/home/virtwww/w_pechnoi-ru_ff8f6368/http/auto.p(87:2)