Ошибка! 1242 Subquery returns more than 1 row select SQL_CALC_FOUND_ROWS p.id, p.name, p.name_eng, p.alias, p.intro, p.intro_eng, p.price, (select fileName from shop_products_images where productId = p.id and preview = 1 limit 1) as thumbnail, pc.outId, pc.ordering, (select c.priority from shop_categories as c, shop_products_categories as pcc where c.id = pcc.outId and c.parent = 293 and pcc.inId = p.id) as ordering from shop_products as p, shop_products_categories as pc where pc.outId = 323 and pc.inId = p.id and p.pub = 1 order by ordering, p.name asc limit 0, 1000 /var/www/clients/client20/web52/web/scripts/Shop/Shop.php line 32