можно купить в нашем розничном магазине «Арбалетомания»,
г. Москва, ТЦ "Город Хобби". Щелковское шоссе д.3, стр. 1, 2-й этаж, пав. 205Б или
заказать на нашем сайте www.arbaletomania.ru с доставкой по г. Москва и РФ.
Мы производим доставку продукции странам Белоруссии, Казахстан, СНГ.
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 ')
ORDER BY p2c.id ASC
LIMIT 17' at line 24
SELECT p2c.id item_id,
c.url as category_url,
p.id,
p.title as title,
p.description,
REPLACE(FORMAT(CONVERT(price, UNSIGNED), 0 ), ',', ' ') as price,
REPLACE(FORMAT(CONVERT(p.price_old, UNSIGNED), 0 ), ',', ' ') as price_old,
p.price pr,
p.price_old pr_old,
CONCAT('upload/', REPLACE(i.image,'.jp', '.thumb50.jp')) as thumb50,
CONCAT('upload/', REPLACE(i.image,'.jp', '.thumb180.jp')) as thumb180,
CONCAT('upload/', i.image) as image,
b.id brand_id,
b.title brand_title,
b.url brand_url,
b.image brand_image,
p2c.sort
FROM product2category p2c, brands b, product2brand p2b, categories c,
products p LEFT JOIN images i ON (p.id = i.product_id AND i.is_main = 1)
WHERE p.id = p2b.product_id
AND b.id = p2b.brand_id
AND p.id = p2c.product_id
AND c.id = p2c.category_id
AND p2c.id IN ()
ORDER BY p2c.id ASC
LIMIT 17