1054. Query Error 1054: Unknown column 'pr.sort' in 'order clause'
Query: SELECT DISTINCT p.*,p.id,(p.count > 0 || p.count IS NULL) AS in_stock
FROM shop_product p
JOIN shop_product_related pr
ON p.id = pr.related_product_id
WHERE p.status = 1
AND pr.type = 'cross_selling'
AND pr.product_id = 3110
AND (p.count > 0 OR p.count IS NULL)
ORDER BY in_stock DESC,pr.sort ASC
LIMIT 12
Запрашиваемый ресурс недоступен.