Hello!
Strange, after upgrading VM i changed one product image and after it i cant edit or create produts anymore:
1054 Unknown column 'pc.orderingproduct_name' in 'order clause'
I tried it under PHP 7.0.19, PHP 7.1.5 and PHP 5.6.30. Joomla 3.7.2.
After logout and login this problem gone. :-\ But some times it back again and need logout/login... Brrr
try to replace this file
http://dev.virtuemart.net/projects/virtuemart/repository/revisions/9576/entry/branches/com_virtuemart.3.0.12.4/administrator/components/com_virtuemart/models/product.php