Small bug: includes/functions/extra_functions/edit_orders_functions.php line 1026
missing the "AS P" part of the query.

Code:
                                        'SELECT `p`.`products_quantity` FROM `' . TABLE_PRODUCTS . '` AS `p` ' .